UNPKG

n8n

Version:

n8n Workflow Automation Tool

23 lines (22 loc) 611 B
import { TypedEmitter } from '../TypedEmitter'; type ConcurrencyEvents = { 'execution-throttled': { executionId: string; }; 'execution-released': string; 'concurrency-check': { capacity: number; }; }; export declare class ConcurrencyQueue extends TypedEmitter<ConcurrencyEvents> { private capacity; private readonly queue; constructor(capacity: number); enqueue(executionId: string): Promise<void>; get currentCapacity(): number; dequeue(): void; remove(executionId: string): void; getAll(): Set<string>; private resolveNext; } export {};