We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ab060bf commit 2ea4cc0Copy full SHA for 2ea4cc0
doc/api/stream.md
@@ -1587,6 +1587,10 @@ async function run() {
1587
run().catch(console.error);
1588
```
1589
1590
+`stream.pipeline()` will call `stream.destroy(err)` on all streams except:
1591
+* `Readable` streams which have emitted `'end'` or `'close'`.
1592
+* `Writable` streams which have emitted `'finish'` or `'close'`.
1593
+
1594
`stream.pipeline()` leaves dangling event listeners on the streams
1595
after the `callback` has been invoked. In the case of reuse of streams after
1596
failure, this can cause event listener leaks and swallowed errors.
0 commit comments