Method Change
- Namespace
- KZDev.SystemClock.PrimeTime
- Assembly
- KZDev.SystemClock.PrimeTime.dll
Change(TimeSpan)
Changes the interval of this registration.
bool Change(TimeSpan interval)
Parameters
intervalTimeSpanThe time to delay before the next callback. For a repeating timer, this also becomes the repeat interval.
Returns
- bool
trueif the change was applied;falseif the registration was cancelled, disposed, or otherwise invalid.
Remarks
Does not change whether the timer is repeating or one-shot. For a repeating
timer, interval is used for both the next and subsequent
intervals. To set the next due time and repeat interval independently, use
Change(TimeSpan, TimeSpan).