Function fromParallel

  • Creates an IParallelEnumerable from a function that returns an Array of Promises

    Type Parameters

    • TSource

    Parameters

    • type: ArrayOfPromises

      Array of Promises

    • generator: (() => Promise<TSource>[])

      Function that gives back an array of promises

        • (): Promise<TSource>[]
        • Returns Promise<TSource>[]

    Returns IParallelEnumerable<TSource>

    IParallelEnumerable

  • Creates an IParallelEnumerable from a function that returns a Array Promise

    Type Parameters

    • TSource

    Parameters

    • type: PromiseToArray

      Promise to Array

    • generator: (() => Promise<TSource[]>)

      Async function which returns an array of values

        • (): Promise<TSource[]>
        • Returns Promise<TSource[]>

    Returns IParallelEnumerable<TSource>

    IParallelEnumerable

  • Creates an IParallelEnumerable from a function that returns an promise of an promise array of valus

    Type Parameters

    • TSource

    Parameters

    • type: PromiseOfPromises

      Promise of Promises

    • generator: (() => Promise<Promise<TSource>[]>)

      Async function that returns an array of value promises

        • (): Promise<Promise<TSource>[]>
        • Returns Promise<Promise<TSource>[]>

    Returns IParallelEnumerable<TSource>

    IParallelEnumerable

Generated using TypeDoc