Ciorent
    Preparing search index...

    Function spawn

    • Spawn n concurrent tasks

      Type Parameters

      • const T extends any[]
      • const R

      Parameters

      • n: number
      • task: (...args: [...T[], id: number]) => Promise<R>

        The function to run

      • ...args: T

      Returns Promise<R>[]