Skip to content

Commit

Permalink
Tweak other-specification advice on AbortSignal usage
Browse files Browse the repository at this point in the history
Follows whatwg/dom#1152, which will remove the "follow" operation. Also changes the "should not" to "must not".
  • Loading branch information
shaseley authored May 8, 2023
1 parent 2942e89 commit 1222f88
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -6999,9 +6999,8 @@ above [=WritableStream/set up=] algorithm:
|stream|.[=WritableStream/[[controller]]=].[=WritableStreamDefaultController/[[signal]]=].
Specifications can [=AbortSignal/add=] or [=AbortSignal/remove=] algorithms to this
{{AbortSignal}}, or consult whether it is [=AbortSignal/aborted=] and its [=AbortSignal/abort
reason=]. Specifications should not [=AbortSignal/signal abort=] or make it [=AbortSignal/follow=]
another {{AbortSignal}}, as that would interfere with the normal use of this signal to respond to
the stream being [=abort a writable stream|aborted=].
reason=]. Specifications must not [=AbortSignal/signal abort=], as that would interfere with the
normal use of this signal to respond to the stream being [=abort a writable stream|aborted=].

<p class="note">The usual usage is, after [=WritableStream/setting up=] the {{WritableStream}},
[=AbortSignal/add=] an algorithm to its [=WritableStream/signal=], which aborts any ongoing write
Expand Down

0 comments on commit 1222f88

Please sign in to comment.