all

Heterogeneous variant, which resolves to a tuple. void promises' values are omitted from the result tuple. If all promises are void, then so is the result.

  1. PromiseValueTransform!(P, x => [x]) all(P[] promises)
  2. Promise!(AllResult!Promises.ResultType) all(Promises promises)
    Promise!(AllResult!Promises.ResultType)
    all
    (
    Promises...
    )
    (
    Promises promises
    )
    if (
    allSatisfy!(isPromise, Promises)
    )

Meta