- From: Domenic Denicola <notifications@github.com>
- Date: Wed, 22 Apr 2020 11:12:42 -0700
- To: whatwg/streams <streams@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 22 April 2020 18:12:55 UTC
@domenic commented on this pull request. > @@ -892,7 +896,70 @@ option. If {{UnderlyingSource/type}} is set to undefined (including via omission </div> </div> -<!-- TODO async iterator stuff --> +<h4 id="rs-asynciterator" oldids="rs-asynciterator-prototype, +default-reader-asynciterator-prototype-internal-slots">Asynchronous iteration</h4> + +<dl class="domintro"> + <dt><code>for await (const <var ignore>chunk</var> of <var ignore>stream</var>) { ... }</code> + <dt><code>for await (const <var ignore>chunk</var> of <var ignore>stream</var>.values([{ {{ReadableStreamIteratorOptions/preventCancel}} }])) { ... }</code> They indicate optionality, not array-ness. I can see how it's confusing though :-/. Maybe in this case at least we could just do `{ preventCancel: true }` to show the two different styles. -- 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/1035#discussion_r413208237
Received on Wednesday, 22 April 2020 18:12:55 UTC