- From: Michael Quad <notifications@github.com>
- Date: Fri, 20 Mar 2020 05:15:43 -0700
- To: whatwg/streams <streams@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 20 March 2020 12:15:57 UTC
oke, that clarifies.. so if the `reader.read()` is not settled yet, i can't do `reader.releaseLock()` (according to the spec), so i can't `stream.cancel()` and the only valid route is: > If you have a reader, you must use reader.cancel(), because stream.cancel() only works when your stream is unlocked. What should happen in the same condition of `reader.read()` promise (not settled) when i do: ```javascript reader.cancel(); ``` Will it be resolved or rejected? (i find hard to determine it from the spec) -- 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/1033#issuecomment-601670053
Received on Friday, 20 March 2020 12:15:57 UTC