Helpers/async
setTimeout
setTimeout<T
>(callback
, timeout
, ...args
): number
Create async callback if set timeout value - else call function immediately
Type parameters
Name | Type |
---|---|
T |
any |
Parameters
Name | Type |
---|---|
callback |
(...args : T []) => void |
timeout |
number |
...args |
T [] |
Returns
number
Defined in
src/core/helpers/async/set-timeout.ts#16
clearTimeout
clearTimeout(timer
): void
Clear timeout
Parameters
Name | Type |
---|---|
timer |
number |
Returns
void
Defined in
jodit/src/core/helpers/async/set-timeout.ts:33