mirror of https://github.com/nodejs/node.git
doc: update stream.pipeline() signature
The `...transforms` parameter is optional. Refs: https://github.com/nodejs/node/blob/0875837417/lib/internal/streams/pipeline.js#L130-L132 Refs: https://github.com/nodejs/node/blob/e559842188/doc/api/stream.md#streams-compatibility-with-async-generators-and-async-iterators PR-URL: https://github.com/nodejs/node/pull/31789 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Robert Nagy <ronagy@icloud.com> Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>pull/31912/head
parent
2f97e973ff
commit
2f23918ca5
|
@ -1557,7 +1557,7 @@ const cleanup = finished(rs, (err) => {
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
### `stream.pipeline(source, ...transforms, destination, callback)`
|
### `stream.pipeline(source[, ...transforms], destination, callback)`
|
||||||
<!-- YAML
|
<!-- YAML
|
||||||
added: v10.0.0
|
added: v10.0.0
|
||||||
changes:
|
changes:
|
||||||
|
|
Loading…
Reference in New Issue