🚧 施工中
Last updated 2 years ago
Was this helpful?
⟩ syntax ⟩ ⟩ for await
⟩ ⟩ for await
(⭐️ ES2018)
work with streams of asynchronous events using simple loops.
(async function() { for await (const value of iterable) { ... } })();
for await...of doesn't work with async iterators that are not async iterables.
JavaScript: The Definitive Guide ⟩ Ch. 12, 13
async iterator
async iterable