ISchedulerLongRunning.ScheduleLongRunning(TState, Action) method¶
Defined in
Type: ISchedulerLongRunning
Namespace: System.Reactive.Concurrency
Assembly: System.Reactive.dll
Applies to
netstandard2.0
IDisposable ScheduleLongRunning<TState>(TState state, Action<TState, ICancelable> action)
Summary: Schedules a long-running piece of work.
Type parameters
| Name | Description |
|---|---|
TState | The type of the state passed to the scheduled action. |
Parameters
| Name | Type | Description |
|---|---|---|
state | TState | State passed to the action to be executed. |
action | Action | Action to be executed. |
Returns: IDisposable -- The disposable object used to cancel the scheduled action (best effort).
Remarks
Notes to implementers
The returned disposable object should not prevent the work from starting, but only set the cancellation flag passed to the specified action.