hamok
Version:
Lightweight Distributed Object Storage on RAFT consensus algorithm
12 lines • 400 B
TypeScript
export declare class ConcurrentExecutor {
readonly maxConcurrencyLevel: number;
private _parked;
private _tasks;
private _semaphore;
constructor(maxConcurrencyLevel: number);
execute<T = unknown>(action: () => Promise<T>, park?: boolean): Promise<T>;
flushParkedActions(): void;
private postProcess;
private _run;
}
//# sourceMappingURL=ConcurrentExecutor.d.ts.map