DispatchSequencerState struct¶
Defined in
Namespace: ReactiveUI.Primitives.Advanced
Assembly: ReactiveUI.Primitives.dll
Full name: ReactiveUI.Primitives.Advanced.DispatchSequencerState
Modifiers: public sealed
Summary¶
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¶
| Name | Summary |
|---|---|
| .ctor | Initializes a new instance of the [DispatchSequencerState](# struct using the shared thread-pool timer for delayed work. |
Properties¶
| Name | Summary |
|---|---|
| static Now | Gets the sequencer's notion of current time. |
| static Timestamp | Gets the sequencer's monotonic timestamp. |
Methods¶
| Name | Summary |
|---|---|
| static DelayUntil | Gets the delay from the sequencer's current time until the given monotonic timestamp. |
| static RunIfActive | Executes the work item on the current (dispatcher) thread unless it has already been cancelled. |
| Schedule | Schedules a work item to be executed on the dispatcher. |
| PostDrain | Attempts to post a drain if queued work is waiting. |
| RunDrain | Runs one dispatcher batch. |
| ToString | |
| GetHashCode | |
| Equals |
Operators¶
| Name | Summary |
|---|---|
| static op_Inequality | |
| static op_Equality |