UNPKG

pastoralist

Version:

A tool to watch over node module resolutions and overrides

14 lines (13 loc) 416 B
import type { Task } from "./types"; export declare class ConcurrencyLimiter { private concurrency; private running; private queue; constructor(concurrency: number); run<T>(task: Task<T>): Promise<T>; private process; get queueSize(): number; get activeCount(): number; clear(): void; } export declare const createLimit: (concurrency: number) => <T>(task: Task<T>) => Promise<T>;