Skip to content

DispatchSequencerState struct

Defined in

Namespace: ReactiveUI.Primitives.Advanced Assembly: ReactiveUI.Primitives.dll Full name: ReactiveUI.Primitives.Advanced.DispatchSequencerState Modifiers: public sealed

Summary

View source

Coalescing engine shared by UI-thread sequencers: it batches dispatcher posts and shares delayed scheduling. A sealed sequencer holds one inline and injects its platform post (and optionally scheduleDelayed) delegates plus the cached drain callback; immediate work is queued and drained one batch per post.

Applies to

net10.0, net10.0-android36.0, net10.0-ios26.0, net10.0-macos26.0, net10.0-tvos26.0, net10.0-maccatalyst26.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net9.0, net9.0-desktop1.0, net9.0-browserwasm1.0, net8.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.1, net481, net471, net462

Class hierarchy
classDiagram
class DispatchSequencerState
class IEquatable~DispatchSequencerState~ {
    <>
}
IEquatable~DispatchSequencerState~ <|.. DispatchSequencerState

Implements: IEquatable

Constructors

NameSummary
.ctorInitializes a new instance of the [DispatchSequencerState](# struct using the shared thread-pool timer for delayed work.

Properties

NameSummary
static NowGets the sequencer's notion of current time.
static TimestampGets the sequencer's monotonic timestamp.

Methods

NameSummary
static DelayUntilGets the delay from the sequencer's current time until the given monotonic timestamp.
static RunIfActiveExecutes the work item on the current (dispatcher) thread unless it has already been cancelled.
ScheduleSchedules a work item to be executed on the dispatcher.
PostDrainAttempts to post a drain if queued work is waiting.
RunDrainRuns one dispatcher batch.
ToString
GetHashCode
Equals

Operators

NameSummary
static op_Inequality
static op_Equality