- From: Mattias Buelens <notifications@github.com>
- Date: Mon, 05 Aug 2024 00:20:17 -0700
- To: whatwg/webidl <webidl@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Monday, 5 August 2024 07:20:21 UTC
@MattiasBuelens approved this pull request. LGTM (aside from one last nit) > + 1. Return an IDL [=async iterable=] value with [=JS async iterable/object=] set to |V|, + [=JS async iterable/method=] set to |method|, and [=JS async iterable/type=] set to + "<code>async</code>". +</div> + +<div id="async-iterable-to-js" algorithm="convert an async iterable to a JavaScript value"> + An IDL <a lt="async iterable">async iterable<<var ignore>T</var>></a> value |V| is + [=converted to a JavaScript value|converted=] to a JavaScript object as follows: + + 1. Return |V|'s [=JS async iterable/object=]. +</div> + +<h5 id="js-async-iterator-iteration">Iterating async iterators</h5> + +An [=async iterable=] is not directly iterated over. Instead, it is first opened to create +a [=async iterator=]. The [=async iterator=] can be asynchronously iterated over to produce values. ```suggestion an [=async iterator=]. The [=async iterator=] can be asynchronously iterated over to produce values. ``` -- Reply to this email directly or view it on GitHub: https://github.com/whatwg/webidl/pull/1397#pullrequestreview-2218210867 You are receiving this because you are subscribed to this thread. Message ID: <whatwg/webidl/pull/1397/review/2218210867@github.com>
Received on Monday, 5 August 2024 07:20:21 UTC