- Preparing search index...
- The search index is not available
NewDash
- delay<T>(func, wait?, ...args): number
-
Type Parameters
-
T extends ((...args) => any)
Parameters
-
func: T
-
wait: number = 0
-
Rest
...args: Parameters<T>
Returns number
Returns the timer id.
Invokes
func
afterwait
milliseconds. Any additional arguments are provided tofunc
when it's invoked.Since
5.7.0
Example