Hierarchy

  • MaybeAsyncTypeRef
  • Constructs a MaybeAsync object from a function that takes an object full of helpers that let you lift things into the MaybeAsync context and returns a Promise

    Type Parameters

    • T

    Parameters

    • runPromise: ((helpers) => PromiseLike<T>)
        • (helpers): PromiseLike<T>
        • Parameters

          • helpers: MaybeAsyncHelpers

          Returns PromiseLike<T>

    Returns functional.MaybeAsync<T>

Methods

  • Takes a list of MaybeAsyncs and returns a Promise that will resolve with all Just values. Internally it uses Promise.all to wait for all results

    Type Parameters

    • T

    Parameters

    Returns Promise<T[]>

Generated using TypeDoc