ae.utils.promise

An implementation of promises. Work in progress.

Members

Classes

Promise
class Promise(T, E : Throwable = Exception)

A promise for a value T or error E.

Functions

all
Promise!(T[], E) all(Promise!(T, E)[] promises)
Promise!(void, E) all(Promise!(void, E)[] promises)

Wait for all promises to be resolved, or for any to be rejected.

Meta

License

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/.

Authors

Vladimir Panteleev <ae@cy.md>