mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
doc: add streams to the pipeline function signature
PR-URL: https://github.com/nodejs/node/pull/34153 Reviewed-By: Robert Nagy <ronagy@icloud.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
1 parent
9f0bf5c9e1
commit
ab6b786e9d
1 file changed
+2
@@ -1598,6 +1598,7 @@ const cleanup = finished(rs, (err) => {
|
||||
```
|
||||
|
||||
### `stream.pipeline(source[, ...transforms], destination, callback)`
|
||||
### `stream.pipeline(streams, callback)`
|
||||
<!-- YAML
|
||||
added: v10.0.0
|
||||
changes:
|
||||
@@ -1612,6 +1613,7 @@ changes:
|
||||
which are expected to emit `'close'`.
|
||||
-->
|
||||
|
||||
* `streams` {Stream[]|Iterable[]|AsyncIterable[]|Function[]}
|
||||
* `source` {Stream|Iterable|AsyncIterable|Function}
|
||||
* Returns: {Iterable|AsyncIterable}
|
||||
* `...transforms` {Stream|Function}
|
||||
|
||||
Reference in new issue
Block a user