cancelAll

fnvoid cancelAll(T)(ref Promise!T[] promises) @safe nothrow

Cancel all promises in an array.

Each promise's cancel() is called. Already-completed promises are unaffected (cancel is a no-op on non-pending promises). This is the building block for all() and race() cancellation semantics.

Parameters

promisesArray of promises to cancel.