ITimer
Per-plugin timer service. Access via this.Timer in any IDeadworksPlugin.
public interface ITimer
Namespace: DeadworksManaged.Api
Source: Timer/ITimer.cs#L6
Methods
ITimer.Once()
Execute a callback once after the specified delay.
Signature
IHandle Once(Duration delay, Action callback)
Source: Timer/ITimer.cs#L9
ITimer.Every()
Execute a callback repeatedly at the specified interval.
Signature
IHandle Every(Duration interval, Action callback)
Source: Timer/ITimer.cs#L12
ITimer.Sequence()
Run a stateful sequence. The callback receives an IStep and returns a Pace to control when the next invocation occurs.
Signature
IHandle Sequence(Func<IStep, Pace> callback)
Source: Timer/ITimer.cs#L18
ITimer.NextTick()
Defer an action to the next tick. Thread-safe - can be called from any thread.
Signature
void NextTick(Action callback)
Source: Timer/ITimer.cs#L23