Sign up (with export icon)

utils/abortabledebounce

Api-module icon module

Interfaces

Functions

  • Chevron-right icon

    abortableDebounce( func ) → AbortableFunc<Args, Ret>

    Returns a function wrapper that will execute the provided function and abort any previous call that is still in progress.

    Type parameters

    Args : extends Array<any>
    Ret

    Parameters

    func : ( signal: AbortSignal, args: Args ) => Ret

    The function to be called. It will be provided with AbortSignal as the first parameter.

    Returns

    AbortableFunc<Args, Ret>