News for hackers. Stuff that matters.
Re:Node v8.0.0 Released by krisdol on Tuesday May 30, 2017 @06:28PM (#14449071)
You can use .map to call await on every element in the array, or define a new function so you don't have to write that all the time:

    const awaitAll = (futures) => futures.map(f => await f);
edit: this is wrong but I can't delete it. Haven't used async as much as promises.
Re:Node v8.0.0 Released by ujal on Tuesday May 30, 2017 @06:38PM (#14449131)
Well an async function always returns a Promise. await simply blocks until the Promise is resolved to continue execution. Thats why I am wondering why they decided to await only on a single Promise.
Re:Node v8.0.0 Released by ujal on Tuesday May 30, 2017 @06:30PM (#14449083)
Don't you need to be in an async context to call await?