fix timer typo

This commit is contained in:
Florian Dold 2017-06-06 13:12:24 +02:00
parent d283331285
commit 21ea13250f
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B

View File

@ -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));
} }