File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -323,6 +323,9 @@ The `'unpipe'` event is emitted when the [`stream.unpipe()`][] method is called
323323on a [ Readable] [ ] stream, removing this [ Writable] [ ] from its set of
324324destinations.
325325
326+ This is also emitted in case this [ Writable] [ ] stream emits an error when a
327+ [ Readable] [ ] stream pipes into it.
328+
326329``` js
327330const writer = getWritableStreamSomehow ();
328331const reader = getReadableStreamSomehow ();
@@ -1485,6 +1488,9 @@ the callback and passing the error as the first argument. This will cause an
14851488on how the stream is being used. Using the callback ensures consistent and
14861489predictable handling of errors.
14871490
1491+ If a Readable stream pipes into a Writable stream when Writable emits an
1492+ error, the Readable stream will be unpiped.
1493+
14881494``` js
14891495const { Writable } = require (' stream' );
14901496
You can’t perform that action at this time.
0 commit comments