Holds, controls and reports on execution of a queue of asynchronous jobs.
Extends EventEmitter
(any)
Fired every opts.statsInterval
milliseconds, to tell how many jobs are processed per second.
(number)
: number of jobs that are processed per second
Fired every time a job's execution has ended succesfully.
(number)
: identifier of the job which execution ended
(any)
: return value of the job function
(any)
: TBD
Fired when no more jobs are to be run.
Counts jobs per second to provide stats and commit to rating limit.
Extends EventEmitter
(any)
Informs the RateLimiter that a job has just started
Informs the RateLimiter that a job has just ended
determines whether or not it's possible to start another job now, according to rate limits.
any
:
true if it's possible to start another job now
any
:
a promise that resolves when all jobs ended running.