Re: [whatwg/streams] ReadableStream should be an async iterable (#778)

There are two approaches to this:

- Have `[Symbol.asyncIterable]` directly return the default reader object, and add aliases to reader: `next()` aliases `read()`; `return()` aliases `releaseLock()`. And I guess make `releaseLock()` return an empty object?
- Have `[Symbol.asyncIterable]` return a small wrapper object, of the sort in Jake's blog post.

After realizing we'd have to make `releaseLock()` return an empty object, I'm leaning toward the latter. But, does anyone think the former would be better?

-- 
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/778#issuecomment-371711899

Received on Friday, 9 March 2018 04:44:11 UTC