Given an array of tasks, return a new Task which resolves once all
of the tasks have either resolved or rejected. The resulting Task is a tuple
or array corresponding exactly to the tasks passed in, either resolved or
rejected.
letoutput = awaitsettledTask; if (output.isOk) { // always true, not currently statically knowable for (letresultofoutput.value) { console.log(result.toString()); } }
Given an array of tasks, return a new
Task
which resolves once all of the tasks have either resolved or rejected. The resultingTask
is a tuple or array corresponding exactly to the tasks passed in, either resolved or rejected.Example
Given a mix of resolving and rejecting tasks:
The resulting output will be: