sf-decomposer
Version:
Split large Salesforce metadata files into version-control-friendly pieces and rebuild deployment-ready files.
8 lines (7 loc) • 404 B
TypeScript
/**
* 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>;