Files
NapCatQQ/.pnpm-store/v3/files/d4/8bbfca7f4b4f2e6fff1c6a35dfa1fb3dd46e665d53a3616b14e2b43a7694b477ed7f8a1de47040834261f1b75681200e1dce6c2196712e9e0b8d5dc7185690
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

7 lines
340 B
Plaintext

/**
* pLimit creates a "limiter" function that can be used to enqueue
* promise returning functions with limited concurrency.
* @param {number} concurrency
*/
export function pLimit(concurrency: number): <Arguments extends unknown[], RType>(fn: (...args: Arguments) => RType | PromiseLike<RType>, ...args: Arguments) => Promise<RType>;