ReactiveUI.Primitives.Advanced.DispatchSequencerState
Queues immediate work into posted batches and schedules delayed work through the supplied delegates.
Gets the sequencer's notion of current time.
Gets the sequencer's monotonic timestamp.
Initializes a new instance of the DispatchSequencerState struct using the shared thread-pool timer for delayed work.
public DispatchSequencerState(ISequencer owner, Func<Action, bool> post, Action drain, Action<IWorkItem, long> scheduleDelayed)
Initializes a new instance of the DispatchSequencerState struct.
Gets the delay from the sequencer's current time until the given monotonic timestamp.
Executes the work item on the current (dispatcher) thread unless it has been cancelled.
Attempts to post a drain if queued work is waiting.
Runs one dispatcher batch.
Schedules a work item to be executed on the dispatcher.
Schedules a work item to be executed on the dispatcher at a monotonic timestamp.