Intro
一个限制最大(异步任务)并发的高阶函数。
A higher-order function that limits the maximum (asynchronous task) concurrency.
Demo
Types
export declare function concurrentAsync<T, P extends any[], R>(fn: (this: T, ...p: P) => Promise<R>, maxCount?: number): (this: T, ...p: P) => Promise<R>;
1