| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Sorry, something went wrong.
|
@benjamingr: Isn't the usual pattern to send an options object i.e. { signal }? |
Sorry, something went wrong.
There was a problem hiding this comment.
needs docs?
Sorry, something went wrong.
|
Yeah I tend to prefer options with a signal too |
Sorry, something went wrong.
add support for AbortSignal to promisified pipeline. Resolves: nodejs#37321
|
I've updated the docs, and also changed it to receive an options parameter, in the promise version (and added some checks, to make sure that the options object is really an options object). @ronag I could also "push" the changes from the promise version, into the regular pipeline implementation, so that both the "regular" pipeline and promisified pipeline support cancellation. where the API will change to: Similarly to what was done in readline.question, a few weeks ago. |
Sorry, something went wrong.
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
This PR adds support for AbortSignal to promisified pipeline (in stream/promises)
This resolves #37321.
As an aside, this wouldn't be hard to actually push it into pipeline itself and support it in the regular version, however it's already pretty simple to just call addAbortSignal from stream on the received pipeline.