Home > utils > asyncLimit
异步函数并行执行限制。
Signature:
export declare function asyncLimit<T extends (...args: any[]) => Promise<any>>(asyncFn: T, options?: AsyncLimitOptions): T;
Parameter | Type | Description |
---|---|---|
asyncFn | T | 异步函数 |
options | AsyncLimitOptions | (Optional) 选项 |
Returns:
T