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

Properties

Properties

tick: ((msg?) => 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.

Type declaration

    • (msg?): void | Promise<void>
    • Parameters

      • Optional msg: string

      Returns void | Promise<void>

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

Type declaration

    • (nTimes, msg?): Promise<void>
    • Parameters

      • nTimes: number
      • Optional msg: string

      Returns Promise<void>