Search Results for

    Show / Hide Table of Contents

    Interface ISchedulerLongRunning

    Scheduler with support for starting long-running tasks. This type of scheduler can be used to run loops more efficiently instead of using recursive scheduling.

    Namespace: System.Reactive.Concurrency
    Assembly: System.Reactive.Interfaces.dll
    Syntax
    public interface ISchedulerLongRunning

    Methods

    | Improve this Doc View Source

    ScheduleLongRunning<TState>(TState, Action<TState, ICancelable>)

    Schedules a long-running piece of work.

    Declaration
    IDisposable ScheduleLongRunning<TState>(TState state, Action<TState, ICancelable> action)
    Parameters
    Type Name Description
    TState state

    State passed to the action to be executed.

    Action<TState, ICancelable> action

    Action to be executed.

    Returns
    Type Description
    IDisposable

    The disposable object used to cancel the scheduled action (best effort).

    Type Parameters
    Name Description
    TState

    The type of the state passed to the scheduled action.

    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.

    Extension Methods

    Scheduler.ScheduleLongRunning(ISchedulerLongRunning, Action<ICancelable>)
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX