Timer Class
Notifies handler after a set interval.
Methods
Name | Description | |
---|---|---|
constructor(msDelay: number): Timer | Creates a new Timer. | |
setOnExecute(onExecute: undefined | ExecuteHandler): void | Set handler that is called after a set interval. | |
start(): void | Starts this Timer. | |
stop(): void | Stops this Timer. |
Properties
Name | Type | Description | |
---|---|---|---|
delay Accessor | number | Time interval in milliseconds after which handler will be notified. | |
isRunning Accessor ReadOnly | boolean | Indicates whether the timer is running |
Defined in
Last Updated: 20 June, 2023