Interface ITimer

interface ITimer {
    AutoReset: boolean;
    Elapsed: (() => void)[];
    Enabled: boolean;
    Interval: number;
    Start(): Promise<any>;
    Stop(): void;
}

Implemented by

Properties

AutoReset: boolean

Boolean indicating whether the Timer should raise the Elapsed event only once (false) or repeatedly (true).

Elapsed: (() => void)[]

List of functions to be called on each time the interval specified elapses

Type declaration

    • (): void
    • Returns void

Enabled: boolean

Boolean indicating whether the Timer should raise the Elapsed event.

Interval: number

The interval, expressed in milliseconds, at which to raise the Elapsed event.

Methods

Generated using TypeDoc