Constructors
constructor
- new EarlyTimer(): EarlyTimer
Methods
emitBefore
- emitBefore(ts: number): void
Returns void
emitBeforeNext
- emitBeforeNext(ms: number): void
Returns void
emitNow
- emitNow(): void
Returns void
emitWhenIdle
- emitWhenIdle(): void
Returns void
onTimeout
- onTimeout(handler: () => void): void
Returns void
reset
- reset(): void
Returns void
Wrapper over JS timers that allows re-scheduling them to earlier time