- From: Jake Archibald <notifications@github.com>
- Date: Wed, 28 Mar 2018 07:55:02 -0700
- To: whatwg/streams <streams@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 28 March 2018 14:55:26 UTC
Wrapper object seems like a clear winner.
I didn't like the sound of auto-cancel, but given @domenic's code example it sounds like the better thing to do.
We could have:
```js
for await (const chunk of stream.iterator({ preventClose: true })) {
// …
}
```
Then `stream[Symbol.asyncIterator]` could alias `stream.iterator`.
--
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-376916549
Received on Wednesday, 28 March 2018 14:55:26 UTC