@hisorange/resistor
Version:
Versatily resource load throttler with extensible strategies, configuration and virtual thread management.
12 lines (11 loc) • 357 B
TypeScript
export declare enum EVENTS {
FLUSH_INVOKED = "flush.invoked",
FLUSH_SCHEDULED = "flush.scheduled",
FLUSH_EXECUTED = "flush.executed",
WORKER_REJECTED = "worker.rejected",
WORKER_RETRYING = "worker.retrying",
THREAD_OPENED = "thread.opened",
THREAD_CLOSED = "thread.closed",
QUEUE_EMPTY = "queue.empty",
EMPTY = "empty"
}