-
Notifications
You must be signed in to change notification settings - Fork 0
Executes a function for a list of arguments but keeps sure that only a limited number of jobs is running at the same time
themasch/node-executor
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
=== API === var ex = new Executor(function(arg1, arg2) { var self = this; // Tip: save your object reference! // to what you have to do // this is bind to the executor do.async.stuff(function() { self.emit('job_done'); // this starts the next job }); } ex.push([arg1, arg2]); // add new arguments for execution ex.startExecution(x); // start x queues ====== Events ====== - all_queues_done: All running queues are done - job_queue_done: A running queue is done (no more arguments left) - job_done: you emit it, you should know it!
About
Executes a function for a list of arguments but keeps sure that only a limited number of jobs is running at the same time
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published