Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -4129,10 +4129,10 @@ An [=interface=] can be declared to be asynchronously iterable by using an

<pre highlight="webidl" class="syntax">
interface interface_identifier {
async iterable&lt;value_type&gt;;
async iterable&lt;value_type&gt;(/* arguments... */);
async iterable&lt;key_type, value_type&gt;;
async iterable&lt;key_type, value_type&gt;(/* arguments... */);
async_iterable&lt;value_type&gt;;
async_iterable&lt;value_type&gt;(/* arguments... */);
async_iterable&lt;key_type, value_type&gt;;
async_iterable&lt;key_type, value_type&gt;(/* arguments... */);
};
</pre>

Expand Down Expand Up @@ -4211,7 +4211,7 @@ or [=regular operations=] with these names.
interface SessionManager {
Session getSessionForUser(DOMString username);

async iterable&lt;DOMString, Session&gt;;
async_iterable&lt;DOMString, Session&gt;;
};

[Exposed=Window]
Expand Down Expand Up @@ -6222,7 +6222,7 @@ only [=list/items=] that are of type |T|.

<!-- Note: if we ever add synchronous iterable types, we should add a note here about why sequences and iterables are not the same. -->

<h4 id="idl-async-iterable-type" lt="async iterable" dfn export>Async iterable types — async iterable&lt;|T|&gt;</h4>
<h4 id="idl-async-iterable-type" lt="async_iterable" dfn export>Async iterable types — async iterable&lt;|T|&gt;</h4>

An <dfn lt="async iterable type" export>async iterable type</dfn> is a parameterized
type whose values are references to objects that can produce an asynchronously iterable, possibly infinite,
Expand Down Expand Up @@ -8230,7 +8230,7 @@ an [=async iterator=]. The [=async iterator=] can be asynchronously iterated ove
<div algorithm>

To <dfn id="async-iterable-open" export lt="open an async iterable">open</dfn> an
<code><a lt="async iterable type">async iterable&lt;<var>T</var>&gt;</a></code> |iterable|:
<code><a lt="async iterable type">async_iterable&lt;<var>T</var>&gt;</a></code> |iterable|:

1. Let |iterator| be [=?=] <a abstract-op>GetIteratorFromMethod</a>(|iterable|'s
[=JS async iterable/object=], |iterable|'s [=JS async iterable/method=]).
Expand Down Expand Up @@ -8302,7 +8302,7 @@ an [=async iterator=]. The [=async iterator=] can be asynchronously iterated ove

<pre>
interface I {
Promise&lt;DOMString> concatN(async iterable&lt;DOMString> strings, unsigned long maxN);
Promise&lt;DOMString> concatN(async_iterable&lt;DOMString> strings, unsigned long maxN);
};
</pre>

Expand Down
Loading