Q:

for await example

(async function() {
  for await (let num of asyncIterable) {
    console.log(num);
  }
})();

// 0
// 1
// 2
0

New to Communities?

Join the community