Appearance
Home > resol-vbus-core > TimestampInterval
TimestampInterval class
A helper class managing timestamp-based interval events.
Signature:
typescript
export declare class TimestampInterval
Constructors
Constructor | Modifiers | Description |
---|---|---|
Construct a timestamp interval. |
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
AbortController | null | The AbortController to stop the interval. | ||
number | The interval in milliseconds. | ||
number | null | The last interval that fired. | ||
(timestamp: Date) => void | (Optional) The callback to be called when an interval has passed. |
Methods
Method | Modifiers | Description |
---|---|---|
Determine whether a new interval has started. | ||
Start the realtime interval. | ||
Stop the realtime interval. |