aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/timer.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/timer.ts b/src/timer.ts
index f19e975ac..289b46f16 100644
--- a/src/timer.ts
+++ b/src/timer.ts
@@ -73,7 +73,7 @@ export function every(delayMs: number, callback: () => void): TimerHandle {
* Call a function after the delay given in milliseconds passes.
*/
export function after(delayMs: number, callback: () => void): TimerHandle {
- return new TimeoutHandle(setInterval(callback, delayMs));
+ return new TimeoutHandle(setTimeout(callback, delayMs));
}