Handle task dispatching in dispatch pool