Table of Contents

Enum TimerState

Namespace
KZDev.SystemClock.PrimeTime
Assembly
KZDev.SystemClock.PrimeTime.dll

Represents the state of a timer registration.

public enum TimerState

Fields

Active = 0

The 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 = 1

The timer has been cancelled.

Completed = 2

The 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 = 3

The timer has been disabled or stopped.

Disposed = 4

The timer has been disposed.

ProcessingCallback = 5

The 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 = 6

The timer is between repeat ticks (no callback running). Interval timers only.

No callback is running in this state.

RepeatProcessingCallback = 7

A 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.