some adjusts on the task module
Refactoring to use ES6 async generators