fix timer typo
This commit is contained in:
parent
d283331285
commit
21ea13250f
@ -73,7 +73,7 @@ export function every(delayMs: number, callback: () => void): TimerHandle {
|
|||||||
* Call a function after the delay given in milliseconds passes.
|
* Call a function after the delay given in milliseconds passes.
|
||||||
*/
|
*/
|
||||||
export function after(delayMs: number, callback: () => void): TimerHandle {
|
export function after(delayMs: number, callback: () => void): TimerHandle {
|
||||||
return new TimeoutHandle(setInterval(callback, delayMs));
|
return new TimeoutHandle(setTimeout(callback, delayMs));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user