defined task callback type