-
-
Notifications
You must be signed in to change notification settings - Fork 196
Add active event
#49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add active event
#49
Conversation
|
@szmarczak Updated |
|
LGTM. |
|
@sindresorhus Requested changes pushed. |
active event
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
emit('active') should be placed in _tryToStartAnother right before dequeue()()
|
Does the dependency on the "events" Node.js package not break browser compatibility? If so, a callback/observable implementation could be an alternative solution, and would be more light-weight. Perhaps this type of change could also be a major version bump. |
Similar in spirit to a proprosal in #41. This doesn't necessitate the use case mentioned in that issue, but it would provide a tool which could be used for that purpose. My motivation for this would be to have a hook into the processing without requiring an external interval to poll a queue instance.