interface ManualTimerAdmin {
    tick: ((msg?: string) => void | Promise<void>);
    tickN: ((nTimes: number, msg?: string) => Promise<void>);
}

Properties

Properties

tick: ((msg?: string) => void | Promise<void>)

Advance the timer by one tick. DEPRECATED: use await tickN(1) instead. tick function errors might be thrown synchronously, even though success is signaled by returning anything other than a rejected promise.

tickN: ((nTimes: number, msg?: string) => Promise<void>)