Skip to content

Commit f3bd156

Browse files
committed
Editorial: Use AbortController/signal instead of dot notation
1 parent 49f981b commit f3bd156

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

index.bs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ At construction of each {{RTCRtpSender}} or {{RTCRtpReceiver}}, run the followin
9999
1. If [=this=].`[[pipeToController]]` is not null, abort these steps.
100100
2. Set [=this=].`[[pipeToController]]` to a new {{AbortController}}.
101101
<!-- FIXME: Use pipeTo algorithm when available. -->
102-
3. Call <a href="https://streams.spec.whatwg.org/#readable-stream-pipe-to">pipeTo</a> with [=this=].`[[readable]]`, [=this=].`[[writable]]`, preventClose equal to true, preventAbort equal to true, preventCancel equal to true and [=this=].`[[pipeToController]]`.signal.
102+
3. Call <a href="https://streams.spec.whatwg.org/#readable-stream-pipe-to">pipeTo</a> with [=this=].`[[readable]]`, [=this=].`[[writable]]`, preventClose equal to true, preventAbort equal to true, preventCancel equal to true and [=this=].`[[pipeToController]]`'s [=AbortController/signal=].
103103

104104
### Stream processing ### {#stream-processing}
105105

@@ -146,21 +146,21 @@ The `transform` setter steps are:
146146
4. Let |writer| be the result of [=WritableStream/getting a writer=] for |checkedTransform|.`[[writable]]`.
147147
5. Initialize |newPipeToController| to a new {{AbortController}}.
148148
6. If [=this=].`[[pipeToController]]` is not null, run the following steps:
149-
1. [=AbortSignal/Add=] the [$chain transform algorithm$] to [=this=].`[[pipeToController]]`.signal.
149+
1. [=AbortSignal/Add=] the [$chain transform algorithm$] to [=this=].`[[pipeToController]]`'s [=AbortController/signal=].
150150
2. [=AbortController/signal abort=] on [=this=].`[[pipeToController]]`.
151151
7. Else, run the [$chain transform algorithm$] steps.
152152
8. Set [=this=].`[[pipeToController]]` to |newPipeToController|.
153153
9. Set [=this=].`[[transform]]` to |transform|.
154154
10. Run the steps in the set of [$association steps$] of |transform| with [=this=].
155155

156156
The <dfn abstract-op>chain transform algorithm</dfn> steps are defined as:
157-
1. If |newPipeToController|.signal is [=AbortSignal/aborted=], abort these steps.
157+
1. If |newPipeToController|'s [=AbortController/signal=] is [=AbortSignal/aborted=], abort these steps.
158158
2. [=ReadableStreamDefaultReader/Release=] |reader|.
159159
3. [=WritableStreamDefaultWriter/Release=] |writer|.
160160
4. Assert that |newPipeToController| is the same object as |rtcObject|.`[[pipeToController]]`.
161161
<!-- FIXME: Use pipeTo algorithm when available. -->
162-
5. Call <a href="https://streams.spec.whatwg.org/#readable-stream-pipe-to">pipeTo</a> with |rtcObject|.`[[readable]]`, |checkedTransform|.`[[writable]]`, preventClose equal to false, preventAbort equal to false, preventCancel equal to true and |newPipeToController|.signal.
163-
6. Call <a href="https://streams.spec.whatwg.org/#readable-stream-pipe-to">pipeTo</a> with |checkedTransform|.`[[readable]]`, |rtcObject|.`[[writable]]`, preventClose equal to true, preventAbort equal to true, preventCancel equal to false and |newPipeToController|.signal.
162+
5. Call <a href="https://streams.spec.whatwg.org/#readable-stream-pipe-to">pipeTo</a> with |rtcObject|.`[[readable]]`, |checkedTransform|.`[[writable]]`, preventClose equal to false, preventAbort equal to false, preventCancel equal to true and |newPipeToController|'s [=AbortController/signal=].
163+
6. Call <a href="https://streams.spec.whatwg.org/#readable-stream-pipe-to">pipeTo</a> with |checkedTransform|.`[[readable]]`, |rtcObject|.`[[writable]]`, preventClose equal to true, preventAbort equal to true, preventCancel equal to false and |newPipeToController|'s [=AbortController/signal=].
164164

165165
This algorithm is defined so that transforms can be updated dynamically.
166166
There is no guarantee on which frame will happen the switch from the previous transform to the new transform.

0 commit comments

Comments
 (0)