Skip to content

)}

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

NameDescription
TStateThe type of the state passed to the scheduled action.

Parameters

NameTypeDescription
stateTStateState passed to the action to be executed.
actionActionAction 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.