Home > @cascadiacollections/fluentui-compat > ICancelable
ICancelable interface
Interface for cancelable functions returned by debounce. Provides additional control over the debounced function execution.
Signature:
export interface ICancelable<T extends (...args: any[]) => any>
Properties
|
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
() => void |
Cancels any pending execution | ||
|
() => ReturnType<T> |
Immediately executes the function and returns its result | ||
|
() => boolean |
Returns true if the function is currently pending execution |