Skip to content

Applies to

netstandard2.0

public static IDisposable ScheduleLongRunning(this ISchedulerLongRunning scheduler, Action<ICancelable> action)

Summary: Schedules an action to be executed.

Parameters

NameTypeDescription
scheduler[ISchedulerLongRunning](#Scheduler to execute the action on.
actionActionAction to execute.

Returns: IDisposable -- The disposable object used to cancel the scheduled action (best effort).

Exceptions

TypeCondition
System.ArgumentNullExceptionscheduler or action is null.