Classes

The following classes are available globally.

  • ResultPromise is a minimal Promise implementation that wraps a Result<T, E> instance. It supports the fulfil, await, then and thenAsync combinators, facilitating a fluid sequencing of computations that produce either a Result (then) or a ResultPromise instance (thenAsync). (The reject combinator is redundant, as failure is handled by the embedded Result.)

    See more

    Declaration

    Swift

    public class ResultPromise<T, E> where E : Error