Skip to content

Commit ce3f4c8

Browse files
TomStrepsiladuh95
authored andcommitted
doc: document TransformStream transformer.cancel option
Add documentation for the `cancel` option of the `TransformStream` transformer, which allows users to specify a callback that will be called when the stream is canceled. See: https://streams.spec.whatwg.org/#transformer-api Fixes: #62540 PR-URL: #62566 Fixes: #62540 Reviewed-By: René <contact.9a5d6388@renegade334.me.uk> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 60a585e commit ce3f4c8

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

doc/api/webstreams.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1148,6 +1148,12 @@ await Promise.all([
11481148
11491149
<!-- YAML
11501150
added: v16.5.0
1151+
changes:
1152+
- version:
1153+
- v21.5.0
1154+
- v20.14.0
1155+
pr-url: https://github.com/nodejs/node/pull/50126
1156+
description: Supports the