utils/abortabledebounce
module
Interfaces
-
module:utils/abortabledebounce~AbortableFunc
Functions
-
abortableDebounce( func ) → AbortableFunc<Args, Ret>
module:utils/abortabledebounce~abortableDebounce
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>