-
Notifications
You must be signed in to change notification settings - Fork 232
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
Callback for async _read #113
Comments
The problem I see with giving |
This is not a new idea, and for a long time this was the way to return data. Eventually it was scrapped, replaced with push. See nodejs/node-v0.x-archive#4878 for some reference. |
Chris that's why I was thinking of trying to make it a constructor option
so that it would be easy to ignore
Gil: interesting, I'd want it more to mirror _transform with a callback and
push, just a callback would be pretty restrictive
|
It seems my memory fails me. |
Was there some discussion somewhere? On Tue, Feb 24, 2015, 5:48 PM Gil Pedersen [email protected] wrote:
|
Closing for no activity. |
Idea: pass a second argument to _read that signals to stream that the function is done producing data and should be called again if more data is needed. In other words instead of having to look at the response from this push.
For certain types of data this is a much better setup (for instance finding all the files in a directory and it's children) and is in line with how whatwg streams work iirc.
Doing it backwards compatibly there are a couple paths:
The text was updated successfully, but these errors were encountered: