-
Notifications
You must be signed in to change notification settings - Fork 227
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
May 2017 wg meeting: in-person @ Collaborator Summit #275
Comments
Can we also talk about documentation of the streams API? I'd like to have the experts in this group discuss the streams API and implementation, take notes, and then distill that into docs that's easily accessible by users of Node. |
@yunong yes! I don’t think you could get a better opportunity. :) |
other idea: duck typeable api, like what are the most basic methods that say a readable and writable streams need to implement so that if we want to create streamish objects. |
idea: ability to turn off the complexity of streams2, aka neo stream 1 object type thing |
official pump method edit: or pipeTo/pipeThrough methods |
Agreed for tomorrow agenda. |
This is the very old article, but some stream beginner drops this trap. rstream
.pipe(foo)
.pipe(bar)
.on('error', function (err) {
// handle the error
}); but stream should forward some errors to pipe. rstream
.on('error', handleError)
.pipe(foo)
.on('error', handleError)
.pipe(bar)
.on('error', handleError); officially, izs answered about that,
but currently domains are deprecated. do you have a plan to add stream APIs to propagate errors ??? |
Method signatures: |
If it works in browsers/older nodes is good, LGTM cc @addaleax as semver-minor |
we will setup an issue to describe the migration logic for var err = new Error('this is a long message');
err.name = 'ThisIsMyError';
err.code = 'ERROR_CODE';
throw err; The error code will need to be lifted from: https://github.com/nodejs/node/blob/master/lib/internal/errors.js. |
I think we need to sketch out an agenda for what we want to do here, as there are several things to be talked about. I'm opening this as a placeholder:
_flush
or equivalent toWritable
stream: add _end method to write streams (equivilent to _flush) node#2314destroy()
Add .destroy to Readable and Writable prototypes #125_writableState
and_readableState
in core Cleanup_writableState
and_readableState
access across codebase node#445Given we have time during the wg, we might even decide to pair up and do things.
ref: openjs-foundation/summit#41.
I know @calvinmetcalf @yoshuawuyts @lrlna @addaleax and myself (@mcollina) will be there.
@mafintosh, would you be able to join?
The text was updated successfully, but these errors were encountered: