Table of Contents

Class TimerSystem<T>

Namespace
SodaFlow.Time
Assembly
SodaFlow.dll

A timer system built on an ITimerSystemImplementation<T>, which supplies the clock and the wait mechanism. This class gives the FRP.

[PublicAPI]
public class TimerSystem<T> : ITimerSystem<T> where T : IComparable<T>

Type Parameters

T

The type used to express a point in time.

Inheritance
TimerSystem<T>
Implements
Derived
Inherited Members
Extension Methods

Remarks

Alarms get to the graph through a Transaction.OnStart handler installed by the constructor. When a transaction starts, the handler reads the current time, runs any timer that has come due, and sends the alarms. The handler sends events that became due at the same time delivered together, and events at different times in different transactions. Use SystemClockTimerSystem or SecondsTimerSystem unless you a different clock is necessary, and then derive from TimerSystemImplementationBase<T> and give it here.

Constructors

TimerSystem(ITimerSystemImplementation<T>, Action<Exception>)

Initializes a new instance of the TimerSystem<T> class over the given implementation, starting it immediately.

Properties

Time

Gets a behavior giving the current clock time.

Methods

At(Cell<Maybe<T>>)

A timer that fires at the specified time.