Async Iterators

suggest change

Introduction

An async function is one that returns a promise. await yields to the caller until the promise resolves and then continues with the result.

An iterator allows the collection to be looped through with a for-of loop.

An async iterator is a collection where each iteration is a promise which can be awaited using a for-await-of loop.

Async iterators are a stage 3 proposal. They are in Chrome Canary 60 with --harmony-async-iteration

Syntax

Remarks

An async iterator is a declarative pull stream as opposed to an Observable’s declarative push stream.

Useful Links

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:


Async iterators:
* Async Iterators
* Basics

Table Of Contents
11 Arrays
12 Objects
14 Classes
16 Map
17 Set
24 Loops
27 Date
29 Scope
30 AJAX
35 Cookies
41 JSON
44 Fetch
45 Modules
46 Screen
64 Console
68 Symbols
73 Modals
76 Events
86 Proxy
89 WeakMap
90 WeakSet
93 Async iterators
102 Tilde