Enum TimerState
- Namespace
- KZDev.SystemClock.PrimeTime
- Assembly
- KZDev.SystemClock.PrimeTime.dll
Represents the state of a timer registration.
public enum TimerState
Fields
Active = 0The timer is active and is not processing any callbacks.
For interval timers, this state applies when the timer has not triggered any callbacks yet.
For time-of-day timers, this state applies when no callback is running for a scheduled trigger but future time-of-day triggers remain.
Cancelled = 1The timer has been cancelled.
Completed = 2The timer has finished all callbacks. Applies only to non-repeating timers.
For interval timers, callback processing has completed.
For time-of-day timers, all callbacks for the provided times of day have run.
Disabled = 3The timer has been disabled or stopped.
Disposed = 4The timer has been disposed.
ProcessingCallback = 5The timer is processing at least one callback.
For interval timers, this applies when the timer is non-repeating or repeating with ResetIntervalBeforeCallback set to
false(the default).For time-of-day timers, this applies when at least one callback is running for a scheduled time-of-day trigger.
RepeatCycle = 6The timer is between repeat ticks (no callback running). Interval timers only.
No callback is running in this state.
RepeatProcessingCallback = 7A callback is running and the countdown to the next tick was started before this callback began (repeating interval timers with ResetIntervalBeforeCallback set to
true), so another tick may occur before the current callback completes and callbacks may run concurrently.