Type Parameters
- T extends unknown = any
- P extends any[] = any[]
Parameters
- run: ((...args: P) => Promise<T>)
- (...args): Promise<T>
Returns Promise<T>
- options: Partial<IConfig> = {}
Returns IWrappedFn<T, P>
A wrapped function that executes asynchronously within the execution pool.
Creates an execution pool for asynchronous functions with a limited concurrency.
Function