Ciorent
Preparing search index...
Other utilities
spawn
Function spawn
spawn
<
const
T
extends
any
[]
,
const
R
>
(
n
:
number
,
task
:
(
...
args
:
[
...
T
[]
,
id
:
number
]
)
=>
Promise
<
R
>
,
...
args
:
T
,
)
:
Promise
<
R
>
[]
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
>
[]
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Ciorent
Loading...
Spawn n concurrent tasks