for await example

Solutions on MaxInterview for for await example by the best coders in the world

showing results for - "for await example"
Cade
14 Nov 2016
1(async function() {
2  for await (let num of asyncIterable) {
3    console.log(num);
4  }
5})();
6
7// 0
8// 1
9// 2