Method SetTimer
SetTimer(T, Action)
Schedules callback to run when the clock reaches
time.
public ITimer SetTimer(T time, Action callback)
Parameters
timeTThe time at which to run the callback.
callbackActionThe callback to run.
Returns
- ITimer
A handle to cancel the timer before it fires.
Remarks
A time before now fires at the next opportunity, and the timer system does not drop it. The callback runs on the timer thread, or on whichever thread called RunTimersTo(T), and never while this instance's internal lock is held.