Skip to content

Commit ab6b786

Browse files
rickyesMylesBorins
authored andcommitted
doc: add streams to the pipeline function signature
PR-URL: #34153 Reviewed-By: Robert Nagy <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 9f0bf5c commit ab6b786

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

doc/api/stream.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1598,6 +1598,7 @@ const cleanup = finished(rs, (err) => {
15981598
```
15991599

16001600
### `stream.pipeline(source[, ...transforms], destination, callback)`
1601+
### `stream.pipeline(streams, callback)`
16011602
<!-- YAML
16021603
added: v10.0.0
16031604
changes:
@@ -1612,6 +1613,7 @@ changes:
16121613
which are expected to emit `'close'`.
16131614
-->
16141615

1616+
* `streams` {Stream[]|Iterable[]|AsyncIterable[]|Function[]}
16151617
* `source` {Stream|Iterable|AsyncIterable|Function}
16161618
* Returns: {Iterable|AsyncIterable}
16171619
* `...transforms` {Stream|Function}

0 commit comments

Comments
 (0)