You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The stream/promises API is poorly documented #45821
The stream docs page doesn't describe the signature of node:stream/promisespipeline & finished functions.
This is aggravated by the fact that the promise version of stream.pipeline() accepts an options object as last parameter, but the docs doesn't document its properties properly.
The only reference to it is the following paragraph:
The pipeline API provides a promise version, which can also receive an options argument as the last parameter with a signal <AbortSignal> property. When the signal is aborted, destroy will be called on the underlying pipeline, with an AbortError.
Although its note about the options.signal property, the paragraph leaves the property end: boolean (#34805 (comment)) completely undocumented.
Activity
aduh95 commentedon Dec 11, 2022
Would you like to send a PR to fix that?
doc: add stream/promises pipeline and finished to doc
doc: add stream/promises pipeline and finished to doc
doc: add stream/promises pipeline and finished to doc
doc: document pipeline with `end` option
doc: document pipeline with `end` option
CxRes commentedon Sep 17, 2025
I would say that the documentation is still incomplete (when compared to callback versions)!