Refactor handler processing to common processQueue method
Refactor handler processing to common processQueue method

reactphp/promise,cesarmarinhorj/promise,kangkot/promise,arnaud-lb/promise,Adirelle/promise