File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -3476,6 +3476,11 @@ readable.getReader().read().then((result) => {
34763476<!-- YAML
34773477added: v15.4.0
34783478changes:
3479+ - version: REPLACEME
3480+ pr-url: https://github.com/nodejs/node/pull/62450
3481+ description: For web streams, `addAbortSignal()` now runs `cancel` steps on
3482+ `ReadableStream`, and aborts `controller.signal` and runs
3483+ `abort` steps on `WritableStream`.
34793484 - version:
34803485 - v19.7.0
34813486 - v18.16.0
@@ -3493,7 +3498,10 @@ control stream destruction using an `AbortController`.
34933498
34943499Calling ` abort ` on the ` AbortController ` corresponding to the passed
34953500` AbortSignal ` will behave the same way as calling ` .destroy(new AbortError()) `
3496- on the stream, and ` controller.error(new AbortError()) ` for webstreams.
3501+ on a Node.js stream. For web streams, it will error the stream with an
3502+ ` AbortError ` . For ` ReadableStream ` , it will then run the stream's cancel steps.
3503+ For ` WritableStream ` , it will abort ` controller.signal ` and then run the
3504+ stream's abort steps.
34973505
34983506``` js
34993507const fs = require (' node:fs' );
You can’t perform that action at this time.
0 commit comments