Function asyncTimes

  • Repeat the given function number times asyncronously

    Type Parameters

    • T

    Parameters

    • number: number

      The number of times to itterate

    • cb: ((i: number) => Promise<T>)

      The function to run

        • (i: number): Promise<T>
        • Parameters

          • i: number

          Returns Promise<T>

    Returns Promise<T[]>

Generated using TypeDoc