Table of Contents

Method SetTimer

Namespace
SodaFlow.Time
Assembly
SodaFlow.dll

SetTimer(T, Action)

Schedules callback to run when the clock reaches time.

public ITimer SetTimer(T time, Action callback)

Parameters

time T

The time at which to run the callback.

callback Action

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