,--0,System.Collections.Generic.IComparer{--0})} ,--0)}
ScheduledItem.Create(IScheduler, TValue, Func, TAbsolute, IComparer) method¶
Defined in
Type: ScheduledItem
Namespace: ReactiveUI.Primitives.Reactive.Concurrency
Assembly: ReactiveUI.Primitives.Reactive.dll
Applies to
net10.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net9.0, net9.0-browserwasm1.0, net9.0-desktop1.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, net462, net481
Overloads¶
- 1.
public static ScheduledItem<TAbsolute> Create<TAbsolute, TValue>(IScheduler scheduler, TValue state, Func<IScheduler, TValue, IDisposable> action, TAbsolute dueTime, IComparer<TAbsolute> comparer) where TAbsolute : IComparable<TAbsolute> - 2.
public static ScheduledItem<TAbsolute> Create<TAbsolute, TValue>(IScheduler scheduler, TValue state, Func<IScheduler, TValue, IDisposable> action, TAbsolute dueTime) where TAbsolute : IComparable<TAbsolute>
1. Overload¶
public static ScheduledItem<TAbsolute> Create<TAbsolute, TValue>(IScheduler scheduler, TValue state, Func<IScheduler, TValue, IDisposable> action, TAbsolute dueTime, IComparer<TAbsolute> comparer) where TAbsolute : IComparable<TAbsolute>
Summary: Creates a materialized work item that invokes action with the supplied sequencer and state.
Type parameters
| Name | Description |
|---|---|
TAbsolute | Absolute time representation type. |
TValue | Type of the state passed to the scheduled action. |
Parameters
| Name | Type | Description |
|---|---|---|
scheduler | [IScheduler](# | Recursive scheduler to invoke the scheduled action with. |
state | TValue | State to pass to the scheduled action. |
action | Func | Scheduled action. |
dueTime | TAbsolute | Time at which to run the scheduled action. |
comparer | IComparer | Comparer used to compare work items based on their scheduled time. |
Returns: ScheduledItem
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | scheduler, action, or comparer is null. |
2. Overload¶
public static ScheduledItem<TAbsolute> Create<TAbsolute, TValue>(IScheduler scheduler, TValue state, Func<IScheduler, TValue, IDisposable> action, TAbsolute dueTime) where TAbsolute : IComparable<TAbsolute>
Summary: Creates a materialized work item ordered by the default comparer for TAbsolute.
Type parameters
| Name | Description |
|---|---|
TAbsolute | Absolute time representation type. |
TValue | Type of the state passed to the scheduled action. |
Parameters
| Name | Type | Description |
|---|---|---|
scheduler | [IScheduler](# | Recursive scheduler to invoke the scheduled action with. |
state | TValue | State to pass to the scheduled action. |
action | Func | Scheduled action. |
dueTime | TAbsolute | Time at which to run the scheduled action. |
Returns: ScheduledItem
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | scheduler or action is null. |