mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
AbortController: integrate with stream piping. (#37244)
Start using abort signal in Use in https://streams.spec.whatwg.org/#readablestream-pipe-to-signal Part of https://github.com/servo/servo/issues/34866 Will also cover https://github.com/servo/servo/issues/37230 and https://github.com/servo/servo/issues/37232 --------- Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com>
This commit is contained in:
parent
099fd10317
commit
730fe35b42
10 changed files with 508 additions and 263 deletions
|
@ -1053,7 +1053,9 @@ impl Transferable for TransformStream {
|
|||
let proxy_readable = ReadableStream::new_with_proto(&global, None, can_gc);
|
||||
proxy_readable.setup_cross_realm_transform_readable(cx, &port1, can_gc);
|
||||
proxy_readable
|
||||
.pipe_to(cx, &global, &writable, false, false, false, comp, can_gc)
|
||||
.pipe_to(
|
||||
cx, &global, &writable, false, false, false, None, comp, can_gc,
|
||||
)
|
||||
.set_promise_is_handled();
|
||||
|
||||
// Second port pair (proxy readable → writable)
|
||||
|
@ -1075,6 +1077,7 @@ impl Transferable for TransformStream {
|
|||
false,
|
||||
false,
|
||||
false,
|
||||
None,
|
||||
comp,
|
||||
can_gc,
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue