Tankōbon / lib/trailing-debounce / TrailingDebounce
Interface: TrailingDebounce<T>
Defined in: lib/trailing-debounce.ts:7
A pending call of run, delayed until the values stop coming.
Type Parameters
T
T
Methods
cancel()
cancel():
void
Defined in: lib/trailing-debounce.ts:13
Drops the pending call.
Returns
void
flush()
flush():
void
Defined in: lib/trailing-debounce.ts:11
Runs the pending call now, if there is one.
Returns
void
schedule()
schedule(
value):void
Defined in: lib/trailing-debounce.ts:9
Replaces the pending value and restarts the delay.
Parameters
value
T
Returns
void