Property ResetIntervalBeforeCallback
- Namespace
- KZDev.SystemClock.PrimeTime
- Assembly
- KZDev.SystemClock.PrimeTime.dll
ResetIntervalBeforeCallback
For a repeating registration, when false (the default), the next interval is not armed
until the current callback completes. When set to true, the next interval is armed before
the user callback runs, allowing the next tick to fire while the current callback may still be
running.
public bool ResetIntervalBeforeCallback { get; init; }
Property Value
Remarks
When this option is false (the default), the next tick is not armed until the current
callback finishes, so timer-driven callbacks for the same registration never overlap and a slow
callback delays every following tick. For a synchronous callback, that is when the delegate has
returned; for an asynchronous callback, when the returned task has completed (including awaited
work). Only then does the repeat interval count down toward the next fire.
When this option is true, the underlying timer is armed for the next repeat interval
before the user callback runs. If a callback runs longer than the repeat interval, another tick
can fire and start another callback while the previous one is still executing.
When this option is false, a repeating registration reports
ProcessingCallback while a callback is executing. When
true, it reports RepeatProcessingCallback during the callback
instead.
This applies only to repeating interval timer registrations and is ignored for
non-repeating registrations. The default is false.