-
Notifications
You must be signed in to change notification settings - Fork 7.3k
stream.read(0) should not trigger the end
event if there is no underlying data
#6634
Comments
Thanks. @isaacs What's your interpretation? |
/cc @chrisdickinson |
Going to bring the current docs in here:
To clarify between
Assuming a (simplified, incorrect) state machine like so:
|
@chrisdickinson ... does this need to stay open? |
Closing due to lack of further activity. Can reopen if necessary. |
unless you want to undocument it,
.read(0)
for me is "start getting data from the underlying source but don't consume this stream yet". thus, it shouldn't emitend
until.read(n)
is called with anything butn === 0
.test case:
The text was updated successfully, but these errors were encountered: