Skip to content

Commit

Permalink
Editorial: document ReadableStream.from(asyncIterable)
Browse files Browse the repository at this point in the history
  • Loading branch information
MattiasBuelens authored Jul 13, 2023
1 parent 8d7a0bf commit f780e1f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,12 @@ urlPrefix: https://tc39.es/ecma262/; spec: ECMASCRIPT
text: %Object.prototype%; url: #sec-properties-of-the-object-prototype-object
type: dfn
text: abstract operation; url: #sec-algorithm-conventions-abstract-operations
text: array; url: #sec-array-objects
text: async generator; url: #sec-asyncgenerator-objects
text: async iterable; url: #sec-asynciterable-interface
text: completion record; url: #sec-completion-record-specification-type
text: internal slot; url: #sec-object-internal-methods-and-internal-slots
text: iterable; url: #sec-iterable-interface
text: realm; url: #sec-code-realms
text: the current Realm; url: #current-realm
text: the typed array constructors table; url: #table-49
Expand Down Expand Up @@ -694,6 +698,14 @@ option. If {{UnderlyingSource/type}} is set to undefined (including via omission
[[#qs-api]]. If it is not provided, the default behavior will be the same as a
{{CountQueuingStrategy}} with a [=high water mark=] of 1.

<dt><code><var ignore>stream</var> = {{ReadableStream/from(asyncIterable)|ReadableStream.from}}(<var ignore>asyncIterable</var>)</code>
<dd>
<p>Creates a new {{ReadableStream}} wrapping the provided [=iterable=] or [=async iterable=].

<p>This can be used to adapt various kinds of objects into a [=readable stream=], such as an
[=array=], an [=async generator=], or a <a
href="https://nodejs.org/api/stream.html#class-streamreadable">Node.js readable stream</a>.

<dt><code><var ignore>isLocked</var> = <var ignore>stream</var>.{{ReadableStream/locked}}</code>
<dd>
<p>Returns whether or not the readable stream is [=locked to a reader=].
Expand Down

0 comments on commit f780e1f

Please sign in to comment.
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy