-
Notifications
You must be signed in to change notification settings - Fork 190
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
Consider API for next major version of Step #24
Comments
See some background at #7 |
Also merged with #6 |
Does Step work with events. Suppose you have an imap server that sends multiple message events and an end event after the last message has been sent. How do I get the end event to further wait for the message events to be processed use group? |
@digitalrinaldo, Step is meant to be a control-flow structure for async callbacks. Events are a little more complicated, but interface via callbacks. Group is for cases where you have a finite number of async functions and want to be notified when they are all done. Events on a stream is different because you don't know how many there will be till then "end" event fires.
|
@creationix, That's a good workaround. I've been manually executing callbacks:
It'd be cool if Step2 had connivence method to better support stream APIs. Maybe something like this:
Not sure if you need both |
https://gist.github.com/1524578#comments
The text was updated successfully, but these errors were encountered: