FluentUI Compat

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

cancel

() => void

Cancels any pending execution

flush

() => ReturnType<T>

Immediately executes the function and returns its result

pending

() => boolean

Returns true if the function is currently pending execution

  • Edit this page
In this article
Back to top FluentUI React complimentary components and utilities focused on render performance