UNPKG

sf-decomposer

Version:

Decompose Salesforce metadata into granular, VCS-friendly files; recompose for deployment.

8 lines (7 loc) 404 B
/** * Creates a concurrency limiter that ensures at most `concurrency` async tasks * run simultaneously. Returns a scheduler function with the same call signature * as the p-limit package: `limit(fn, ...args)` enqueues the task and returns a * Promise that resolves/rejects with the task's result. */ export declare function pLimit(concurrency: number): <T>(fn: () => T | Promise<T>) => Promise<T>;