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

They are the same. ReadableStream.cancel() is just a convenience method, roughly equivalent to
```javascript
const reader = readable.getReader();
reader.cancel();
reader.releaseLock();
```

-- 
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-600933751

Received on Thursday, 19 March 2020 01:08:44 UTC