Provides the ability to schedule wake() calls repeatedly at a regular interval, or to disable all future use of this TimerRepeater. Created by the deprecated makeRepeater(), new code should use repeatAfter(), which doesn't have a control object and doesn't require a second schedule step

interface TimerRepeater {
    disable: (() => void);
    schedule: ((waker: ERef<TimerWaker>) => TimestampRecord);
}

Properties

Properties

disable: (() => void)

Disable this repeater, so schedule(w) can't be called, and wakers already scheduled with this repeater won't be rescheduled again after E(waker).wake() is next called on them.

schedule: ((waker: ERef<TimerWaker>) => TimestampRecord)

Returns the time scheduled for the first call to E(waker).wake(). The waker will continue to be scheduled every interval until the repeater is disabled.