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.
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
An implementation of promises.