- From: Mattias Buelens <notifications@github.com>
- Date: Thu, 18 Jul 2024 05:40:38 -0700
- To: whatwg/webidl <webidl@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <whatwg/webidl/pull/1397/review/2185699653@github.com>
@MattiasBuelens commented on this pull request. > +platform object. This is in contrast to sequences, which are always passed by value. + +Note: Async iterables can not be constructed from IDL. If returned from an operation, or used as the +type of a dictionary member, the async iterable will have originated from the host environment and +have been turned into an IDL type via a language binding. Instead of returning an async iterable +from an IDL operation, the operation may want to return an [=interface=] that has an +[=asynchronously iterable declaration=]. + +Async iterables must not be used as the type of an [=attribute=] or [=constant=]. + +There is no way to represent an async iterable value in IDL. + +<h5 id="idl-async-iterator-object" lt="async-iterator" dfn export>Async iterator objects</h5> + +An <dfn lt="async iterator" export>async iterator<|T|></dfn> value is a reference to an object +that can produce a sequence of values asynchronously. The async iterator value is is a parameterized ```suggestion that can produce a sequence of values asynchronously. The async iterator value is a parameterized ``` -- Reply to this email directly or view it on GitHub: https://github.com/whatwg/webidl/pull/1397#pullrequestreview-2185699653 You are receiving this because you are subscribed to this thread. Message ID: <whatwg/webidl/pull/1397/review/2185699653@github.com>
Received on Thursday, 18 July 2024 12:40:42 UTC