You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: index.bs
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -111,7 +111,7 @@ At construction of each {{RTCRtpSender}} or {{RTCRtpReceiver}}, run the followin
111
111
1. If [=this=].`[[pipeToController]]` is not null, abort these steps.
112
112
2. Set [=this=].`[[pipeToController]]` to a new {{AbortController}}.
113
113
<!-- FIXME: Use pipeTo algorithm when available. -->
114
-
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.
114
+
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=].
115
115
116
116
<p class=note>
117
117
Streams backpressure can optimize throughput while limiting processing and memory consumption by pausing data production as early as possible in a data pipeline.
@@ -168,21 +168,21 @@ The `transform` setter steps are:
168
168
4. Let |writer| be the result of [=WritableStream/getting a writer=] for |checkedTransform|.`[[writable]]`.
169
169
5. Initialize |newPipeToController| to a new {{AbortController}}.
170
170
6. If [=this=].`[[pipeToController]]` is not null, run the following steps:
171
-
1. [=AbortSignal/Add=] the [$chain transform algorithm$] to [=this=].`[[pipeToController]]`.signal.
171
+
1. [=AbortSignal/Add=] the [$chain transform algorithm$] to [=this=].`[[pipeToController]]`'s [=AbortController/signal=].
172
172
2. [=AbortController/signal abort=] on [=this=].`[[pipeToController]]`.
173
173
7. Else, run the [$chain transform algorithm$] steps.
174
174
8. Set [=this=].`[[pipeToController]]` to |newPipeToController|.
175
175
9. Set [=this=].`[[transform]]` to |transform|.
176
176
10. Run the steps in the set of [$association steps$] of |transform| with [=this=].
177
177
178
178
The <dfn abstract-op>chain transform algorithm</dfn> steps are defined as:
179
-
1. If |newPipeToController|.signal is [=AbortSignal/aborted=], abort these steps.
179
+
1. If |newPipeToController|'s [=AbortController/signal=] is [=AbortSignal/aborted=], abort these steps.
4. Assert that |newPipeToController| is the same object as |rtcObject|.`[[pipeToController]]`.
183
183
<!-- FIXME: Use pipeTo algorithm when available. -->
184
-
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.
185
-
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.
184
+
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=].
185
+
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=].
186
186
187
187
This algorithm is defined so that transforms can be updated dynamically.
188
188
There is no guarantee on which frame will happen the switch from the previous transform to the new transform.
0 commit comments