- From: Reilly Grant <notifications@github.com>
- Date: Mon, 25 Jan 2021 11:59:50 -0800
- To: whatwg/streams <streams@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Monday, 25 January 2021 20:00:03 UTC
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