Re: [whatwg/streams] The difference between ReadableStream.cancel() and ReadableStreamDefaultReader.cancel()? (#1033)

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