vtils

Home > utils > asyncLimit

asyncLimit() function

异步函数并行执行限制。

Signature:

export declare function asyncLimit<T extends (...args: any[]) => Promise<any>>(asyncFn: T, options?: AsyncLimitOptions): T;

Parameters

Parameter Type Description
asyncFn T 异步函数
options AsyncLimitOptions (Optional) 选项

Returns:

T