[whatwg/webidl] Add `async iterable<T>` type to WebIDL (PR #1397)

This commit lifts the async iterator processing logic from the
`ReadableStreamFromIterable` operation in the Streams spec, to a new WebIDL type
`async iterable&lt;T&gt;`.

This will clean up the streams spec, and enable a change in the Fetch spec to
directly allow taking async iterable as request/response bodies, without having
to pass them to `ReadableStream.from` first.


&lt;!--
    This comment and the below content is programmatically generated.
    You may add a comma-separated list of anchors you&#39;d like a
    direct link to below (e.g. #idl-serializers, #idl-sequence):

    Don&#39;t remove this comment or modify anything below this line.
    If you don&#39;t want a preview generated for this pull request,
    just replace the whole of this comment&#39;s content by &quot;no preview&quot;
    and remove what&#39;s below.
--&gt;
***
&lt;a href=&quot;https://whatpr.org/webidl/1397.html&quot; title=&quot;Last updated on Mar 25, 2024, 12:41 PM UTC (14f1bdb)&quot;&gt;Preview&lt;/a&gt; | &lt;a href=&quot;https://whatpr.org/webidl/1397/402a886...14f1bdb.html&quot; title=&quot;Last updated on Mar 25, 2024, 12:41 PM UTC (14f1bdb)&quot;&gt;Diff&lt;/a&gt;
You can view, comment on, or merge this pull request online at:

  https://github.com/whatwg/webidl/pull/1397

-- Commit Summary --

  * Add `async iterable&lt;T&gt;` type to WebIDL

-- File Changes --

    M index.bs (193)

-- Patch Links --

https://github.com/whatwg/webidl/pull/1397.patch
https://github.com/whatwg/webidl/pull/1397.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/webidl/pull/1397
You are receiving this because you are subscribed to this thread.

Message ID: &lt;whatwg/webidl/pull/1397@github.com&gt;

Received on Monday, 25 March 2024 12:42:16 UTC