Skip to content

,--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>

View source

Summary: Creates a materialized work item that invokes action with the supplied sequencer and state.

Type parameters

NameDescription
TAbsoluteAbsolute time representation type.
TValueType of the state passed to the scheduled action.

Parameters

NameTypeDescription
scheduler[IScheduler](#Recursive scheduler to invoke the scheduled action with.
stateTValueState to pass to the scheduled action.
actionFuncScheduled action.
dueTimeTAbsoluteTime at which to run the scheduled action.
comparerIComparerComparer used to compare work items based on their scheduled time.

Returns: ScheduledItem -- The materialized scheduled work item.

Exceptions

TypeCondition
System.ArgumentNullExceptionscheduler, 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>

View source

Summary: Creates a materialized work item ordered by the default comparer for TAbsolute.

Type parameters

NameDescription
TAbsoluteAbsolute time representation type.
TValueType of the state passed to the scheduled action.

Parameters

NameTypeDescription
scheduler[IScheduler](#Recursive scheduler to invoke the scheduled action with.
stateTValueState to pass to the scheduled action.
actionFuncScheduled action.
dueTimeTAbsoluteTime at which to run the scheduled action.

Returns: ScheduledItem -- The materialized scheduled work item.

Exceptions

TypeCondition
System.ArgumentNullExceptionscheduler or action is null.