Defined in: async-throttler.ts:6
• TFn extends AnyAsyncFunction
errorCount: number;
errorCount: number;
Defined in: async-throttler.ts:10
Number of function executions that have resulted in errors
isExecuting: boolean;
isExecuting: boolean;
Defined in: async-throttler.ts:14
Whether the throttled function is currently executing asynchronously
isPending: boolean;
isPending: boolean;
Defined in: async-throttler.ts:18
Whether the throttler is waiting for the timeout to trigger execution
lastArgs: undefined | Parameters<TFn>;
lastArgs: undefined | Parameters<TFn>;
Defined in: async-throttler.ts:22
The arguments from the most recent call to maybeExecute
lastExecutionTime: number;
lastExecutionTime: number;
Defined in: async-throttler.ts:26
Timestamp of the last function execution in milliseconds
lastResult: undefined | ReturnType<TFn>;
lastResult: undefined | ReturnType<TFn>;
Defined in: async-throttler.ts:30
The result from the most recent successful function execution
maybeExecuteCount: number;
maybeExecuteCount: number;
Defined in: async-throttler.ts:34
Number of times maybeExecute has been called (for reduction calculations)
nextExecutionTime: undefined | number;
nextExecutionTime: undefined | number;
Defined in: async-throttler.ts:38
Timestamp when the next execution can occur in milliseconds
settleCount: number;
settleCount: number;
Defined in: async-throttler.ts:42
Number of function executions that have completed (either successfully or with errors)
status: "disabled" | "idle" | "pending" | "executing" | "settled";
status: "disabled" | "idle" | "pending" | "executing" | "settled";
Defined in: async-throttler.ts:46
Current execution status - 'idle' when not active, 'pending' when waiting, 'executing' when running, 'settled' when completed
successCount: number;
successCount: number;
Defined in: async-throttler.ts:50
Number of function executions that have completed successfully
Your weekly dose of JavaScript news. Delivered every Monday to over 100,000 devs, for free.
Your weekly dose of JavaScript news. Delivered every Monday to over 100,000 devs, for free.