diff options
Diffstat (limited to 'src/util/timer.ts')
-rw-r--r-- | src/util/timer.ts | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/util/timer.ts b/src/util/timer.ts index 000f36608..8706c939e 100644 --- a/src/util/timer.ts +++ b/src/util/timer.ts @@ -31,8 +31,7 @@ export interface TimerHandle { } class IntervalHandle { - constructor(public h: any) { - } + constructor(public h: any) {} clear() { clearInterval(this.h); @@ -40,8 +39,7 @@ class IntervalHandle { } class TimeoutHandle { - constructor(public h: any) { - } + constructor(public h: any) {} clear() { clearTimeout(this.h); @@ -78,7 +76,6 @@ export function after(delayMs: number, callback: () => void): TimerHandle { return new TimeoutHandle(setTimeout(callback, delayMs)); } - const nullTimerHandle = { clear() { // do nothing |