Tin mới
JavaScript: Scripting language
Web APIs: Programming interfaces
Structuring content with HTML module
Dynamic scripting with JavaScript module
Note: In practice, you will rarely encounter an async iterable that yields promises, because if you implement it using an async generator function, then the yield expression automatically unwraps promises.
Closing sync iterables on rejection
Similar to for await...of, if the object being iterated is a sync iterable, and a yielded promise rejects, the return() method of the underlying iterator will be called, if one exists, to allow the iterator to perform cl
This page was last modified on Sep 3, 2026 by MDN contributors.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.