Class ScheduledItem<TAbsolute, TValue>
Represents a scheduled work item based on the materialization of an IScheduler.Schedule method call.
Inherited Members
Namespace: System.Reactive.Concurrency
Assembly: System.Reactive.Core.dll
Syntax
public sealed class ScheduledItem<TAbsolute, TValue> : ScheduledItem<TAbsolute>, IScheduledItem<TAbsolute>, IComparable<ScheduledItem<TAbsolute>> where TAbsolute : IComparable<TAbsolute>
Type Parameters
| Name | Description |
|---|---|
| TAbsolute | Absolute time representation type. |
| TValue | Type of the state passed to the scheduled action. |
Constructors
| Improve this Doc View SourceScheduledItem(IScheduler, TValue, Func<IScheduler, TValue, IDisposable>, TAbsolute)
Creates a materialized work item.
Declaration
public ScheduledItem(IScheduler scheduler, TValue state, Func<IScheduler, TValue, IDisposable> action, TAbsolute dueTime)
Parameters
| Type | Name | Description |
|---|---|---|
| IScheduler | scheduler | Recursive scheduler to invoke the scheduled action with. |
| TValue | state | State to pass to the scheduled action. |
| Func<IScheduler, TValue, IDisposable> | action | Scheduled action. |
| TAbsolute | dueTime | Time at which to run the scheduled action. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException |
|
ScheduledItem(IScheduler, TValue, Func<IScheduler, TValue, IDisposable>, TAbsolute, IComparer<TAbsolute>)
Creates a materialized work item.
Declaration
public ScheduledItem(IScheduler scheduler, TValue state, Func<IScheduler, TValue, IDisposable> action, TAbsolute dueTime, IComparer<TAbsolute> comparer)
Parameters
| Type | Name | Description |
|---|---|---|
| IScheduler | scheduler | Recursive scheduler to invoke the scheduled action with. |
| TValue | state | State to pass to the scheduled action. |
| Func<IScheduler, TValue, IDisposable> | action | Scheduled action. |
| TAbsolute | dueTime | Time at which to run the scheduled action. |
| IComparer<TAbsolute> | comparer | Comparer used to compare work items based on their scheduled time. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException |
|
Methods
| Improve this Doc View SourceInvokeCore()
Invokes the scheduled action with the supplied recursive scheduler and state.
Declaration
protected override IDisposable InvokeCore()
Returns
| Type | Description |
|---|---|
| IDisposable | Cancellation resource returned by the scheduled action. |