Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

for await example

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

// 0
// 1
// 2
 
PREVIOUS NEXT
Tagged: #await
ADD COMMENT
Topic
Name
5+4 =