Re: [whatwg/streams] Make read requests abortable (#1103)

The desired behavior seems analogous to the `preventCancel` and `preventAbort` options to `pipeTo()` and `pipeThrough()`.

IIRC calling `reader.cancel()` will cause `promise2` to resolve with `done` set to `true`. Using the `AbortSignal` should probably cause it to reject with an `"AbortError"` `DOMException` instead since the stream isn't really "done".

If we added an `AbortSignal` parameter to `pull()` then it would make sense to signal it in this case, but only if there were no other reads queued.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/issues/1103#issuecomment-767076287

Received on Monday, 25 January 2021 20:00:03 UTC