Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrickyes <ives199511@gmail.com>2020-07-01 13:22:53 +0300
committerJames M Snell <jasnell@gmail.com>2020-07-03 22:11:48 +0300
commit7f2cf0f8da83d67eac47cf3cb1b8c0a98b518831 (patch)
tree8ca231518cdbfe14b027004a64663c1dbe83bab3 /doc/api/stream.md
parent2110fadecdd6c97054dcdcbd1208818c185944ff (diff)
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>
Diffstat (limited to 'doc/api/stream.md')
-rw-r--r--doc/api/stream.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/api/stream.md b/doc/api/stream.md
index 003389502ae..abd1a3fe18b 100644
--- a/doc/api/stream.md
+++ b/doc/api/stream.md
@@ -1597,6 +1597,7 @@ const cleanup = finished(rs, (err) => {
```
### `stream.pipeline(source[, ...transforms], destination, callback)`
+### `stream.pipeline(streams, callback)`
<!-- YAML
added: v10.0.0
changes:
@@ -1611,6 +1612,7 @@ changes:
which are expected to emit `'close'`.
-->
+* `streams` {Stream[]|Iterable[]|AsyncIterable[]|Function[]}
* `source` {Stream|Iterable|AsyncIterable|Function}
* Returns: {Iterable|AsyncIterable}
* `...transforms` {Stream|Function}