Defined in: throttler.ts:5
• TFn extends AnyFunction
executionCount: number;
executionCount: number;
Defined in: throttler.ts:9
Number of function executions that have been completed
isPending: boolean;
isPending: boolean;
Defined in: throttler.ts:25
Whether the throttler is waiting for the timeout to trigger execution
lastArgs: undefined | Parameters<TFn>;
lastArgs: undefined | Parameters<TFn>;
Defined in: throttler.ts:13
The arguments from the most recent call to maybeExecute
lastExecutionTime: number;
lastExecutionTime: number;
Defined in: throttler.ts:17
Timestamp of the last function execution in milliseconds
nextExecutionTime: number;
nextExecutionTime: number;
Defined in: throttler.ts:21
Timestamp when the next execution can occur in milliseconds
status: "disabled" | "idle" | "pending";
status: "disabled" | "idle" | "pending";
Defined in: throttler.ts:29
Current execution status - 'idle' when not active, 'pending' when waiting for timeout
Your weekly dose of JavaScript news. Delivered every Monday to over 100,000 devs, for free.