An implementation of promises.
Promise concurrency tools.
Promise range tools.
A promise for a value T or error E.
Wait for all promises to be resolved, or for any to be rejected.
Returns a new Promise which is rejected with the given reason.
Returns a new Promise!void which is resolved.
Returns a new Promise which is resolved with the given value.
Get the error type of the promise P, i.e. its E parameter.
Get the value type of the promise P, i.e. its T parameter.
Construct a new Promise type based on P, if the given transformation was applied on the value type. If P is a void Promise, then the returned promise will also be void.