• Concurrently evaluate the Either or AsyncEitherLike in an array or a tuple literal and collect the Right values in an equivalent structure.

    Type Parameters

    Parameters

    • elems: TElems

    Returns AsyncEither<Either.LeftT<{
        [K in keyof TElems]: Awaited<TElems[K]>
    }[number]>, {
        [K in keyof TElems]: Either.RightT<Awaited<TElems[K]>>
    }>

    Remarks

    This function turns an array or a tuple literal of AsyncEitherLike "inside out". For example:

    • AsyncEither<E, T>[] becomes AsyncEither<E, T[]>
    • [AsyncEither<E, T1>, AsyncEither<E, T2>] becomes AsyncEither<E, [T1, T2]>
  • Concurrently evaluate the Either or AsyncEitherLike in an iterable and collect the Right values in an array.

    Type Parameters

    • E

    • T

    Parameters

    Returns AsyncEither<E, T[]>

    Remarks

    This function turns an iterable of AsyncEitherLike "inside out". For example, Iterable<AsyncEither<E, T>> becomes AsyncEither<E, T[]>.

Generated using TypeDoc