async-limiter
Advanced tools
Changelog
v2.0.0 (2019-11-20)
This release contains minor breaking changes. These changes should not affect most applications.
process.nextTick
) after the first job is added.
This allows you to order multiple jobs synchronously without unexpected effects.This should align the limiter closer to programmer expectations, but is technically breaking: the current code will immediately begin executing the first job as soon as it is pushed.
This change also fixes a few edge-case bugs related to ordering & sync jobs:
onDone()
callback were added before any jobs were added in the same
tick, it would be immediately called.onDone()
.start()
(queue starts automatically)