utils/delay
module
Interfaces
module:utils/delay~DelayedFunc
Functions
delay( func, wait ) → DelayedFunc<T>module:utils/delay~delayReturns a function wrapper that will trigger a function after a specified wait time. The timeout can be canceled by calling the cancel function on the returned wrapped function.
Type parameters
T : extends ( args: Array<any> ) => any
Parameters
func : TThe function to wrap.
wait : numberThe timeout in ms.
Returns
DelayedFunc<T>