10
0

concurrency.d.ts 175 B

123
  1. import type { Code } from './types';
  2. /** Limits concurrency of async code. */
  3. export declare const concurrency: (limit: number) => <T = unknown>(code: Code<T>) => Promise<T>;