?
u
/
p
1-9
This is the formal specification for a proposed Array.fromAsync
factory method
in JavaScript. It modifies the original ECMAScript specification with
several new or revised clauses. See the proposal's
explainer for the proposal's background, motivation, and usage examples.
This proposal depends on the pull request tc39/ecma262#2942: βsupport built-in async functionsβ.
IfAbruptCloseAsyncIterator is a shorthand for a sequence of algorithm steps that use an
means the same thing as:
This section is a wholly new subsection of the original Properties of the Array Constructor clause, to be inserted before the Array.from clause.
When the fromAsync
method is called, the following steps are taken:
The fromAsync
function is an intentionally generic factory method; it does not require that its