Defined in: async-debouncer.ts:5
• TFn extends AnyAsyncFunction
canLeadingExecute: boolean;
canLeadingExecute: boolean;
Defined in: async-debouncer.ts:9
Whether the debouncer can execute on the leading edge of the timeout
errorCount: number;
errorCount: number;
Defined in: async-debouncer.ts:13
Number of function executions that have resulted in errors
isExecuting: boolean;
isExecuting: boolean;
Defined in: async-debouncer.ts:17
Whether the debounced function is currently executing asynchronously
isPending: boolean;
isPending: boolean;
Defined in: async-debouncer.ts:21
Whether the debouncer is waiting for the timeout to trigger execution
lastArgs: undefined | Parameters<TFn>;
lastArgs: undefined | Parameters<TFn>;
Defined in: async-debouncer.ts:25
The arguments from the most recent call to maybeExecute
lastResult: undefined | ReturnType<TFn>;
lastResult: undefined | ReturnType<TFn>;
Defined in: async-debouncer.ts:29
The result from the most recent successful function execution
settleCount: number;
settleCount: number;
Defined in: async-debouncer.ts:33
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-debouncer.ts:37
Current execution status - 'idle' when not active, 'pending' when waiting, 'executing' when running, 'settled' when completed
successCount: number;
successCount: number;
Defined in: async-debouncer.ts:41
Number of function executions that have completed successfully
Your weekly dose of JavaScript news. Delivered every Monday to over 100,000 devs, for free.