-
-
Notifications
You must be signed in to change notification settings - Fork 191
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
Other events #107
Comments
What other events than empty? |
Sorry, I should have been more explicit. I like the queue.on('empty', () => {
// Since the queue is empty, we have time for other things
console.log(`Will flush out metrics/logs now!`);
logger.flush();
metrics.flush();
}); Does this make sense? I could do some promise "calisthenics" on top of the Cheers and thanks for a great library. |
@acrodrig @sindresorhus I added |
I'd like to toss in a request for |
It would be very nice to have the queue emit other events, such as empty.
The text was updated successfully, but these errors were encountered: