async2sync
Another async to sync library. Run a callback when all tasks are completed.
Usage
// Require the packageconst Task = Task; // Create a new taskvar task = ; // Start some jobs using callbacks/promisessomeJobs; // Tell the task what to do when all the tasks are donetaskcallback = doSomething; // If you want you can override task.call with a method for how you would like the callback called or how tasks should be counted // Wait for the task then do somethingtask; { console;}