- From: Domenic Denicola <notifications@github.com>
- Date: Thu, 08 Mar 2018 20:43:01 -0800
- To: whatwg/streams <streams@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 9 March 2018 04:44:11 UTC
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