Re: [whatwg/streams] add @@asyncIterator to ReadableStreamDefaultReader (#950)

@devsnek The default Reader for a ReadableByteStream is still a ReadableStreamDefaultReader, so we don't need to block on BYOB support. I can't see a way to do bring-your-own-buffer async iterators, as there's no way to supply a buffer to the iterator.

---

```javascript
iterator.return(); // can't unlock, since read is still pending... what now?
```

Can we throw in this case? IIUC, it won't happen when using the `for await (...)` syntax, only when operating the iterator manually, so it doesn't matter if it's a bit clumsy.

-- 
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/pull/950#issuecomment-417154249

Received on Thursday, 30 August 2018 00:52:43 UTC