,System.Action)} ,System.Action,System.Action{ReactiveUI.Primitives.Concurrency.IWorkItem,System.Int64})}
DispatchSequencerState(ISequencer, Func, Action) constructor¶
Defined in
Type: DispatchSequencerState
Namespace: ReactiveUI.Primitives.Advanced
Assembly: ReactiveUI.Primitives.dll
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
Overloads¶
- 1.
public DispatchSequencerState(ISequencer owner, Func<Action, bool> post, Action drain) - 2.
public DispatchSequencerState(ISequencer owner, Func<Action, bool> post, Action drain, Action<IWorkItem, long>? scheduleDelayed)
1. Overload¶
public DispatchSequencerState(ISequencer owner, Func<Action, bool> post, Action drain)
Summary: Initializes a new instance of the DispatchSequencerState struct using the shared thread-pool timer for delayed work.
Parameters
| Name | Type | Description |
|---|---|---|
owner | [ISequencer](# | The owning sequencer, used by the default delayed path. |
post | Func | Posts the cached drain callback to the platform dispatcher. |
drain | Action | The cached drain callback (the owner's drain instance method). |
2. Overload¶
public DispatchSequencerState(ISequencer owner, Func<Action, bool> post, Action drain, Action<IWorkItem, long>? scheduleDelayed)
Summary: Initializes a new instance of the DispatchSequencerState struct.
Parameters
| Name | Type | Description |
|---|---|---|
owner | [ISequencer](# | The owning sequencer, used by the default delayed path. |
post | Func | Posts the cached drain callback to the platform dispatcher. |
drain | Action | The cached drain callback (the owner's drain instance method). |
scheduleDelayed | Action | Platform delayed-scheduling override, or null to use the shared thread-pool timer. |