• Concurrently evaluate the Ior or AsyncIorLike in an array or a tuple literal and collect the right-hand values in an equivalent structure.

    Type Parameters

    Parameters

    • elems: TElems

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

    Remarks

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

    • AsyncIor<E, T>[] becomes AsyncIor<E, T[]>
    • [AsyncIor<E, T1>, AsyncIor<E, T2>] becomes AsyncIor<E, [T1, T2]>
  • Concurrently evaluate the Ior or AsyncIorLike in an iterable and collect the right-hand values in an array.

    Type Parameters

    Parameters

    Returns AsyncIor<A, B[]>

    Remarks

    This function turns an iterable of Ior or AsyncIorLike "inside out". For example, Iterable<AsyncIor<E, T>> becomes AsyncIor<E, T[]>.

Generated using TypeDoc