<PackageReference Include="ReactiveUI.Primitives" Version="10.2.0" />

ReactiveUI.Primitives.Concurrency.Sequencer

public static class Sequencer
Provides built-in sequencers for scheduling work over time.
public static CurrentThreadSequencer CurrentThread { get; }

Gets a sequencer that schedules work as soon as possible on the current thread.

public static ISequencer Default { get; }

Gets the default queueing sequencer for background work.

public static ImmediateSequencer Immediate { get; }

Gets a sequencer that schedules work immediately on the current thread.

public static bool IsImmediate(ISequencer sequencer)

Determines whether sequencer executes work immediately on the calling thread.

public static TimeSpan Normalize(TimeSpan timeSpan)

Normalizes the specified TimeSpan value to a positive value.

public static IDisposable Schedule<TState>(ISequencer scheduler, TState state, Func<ISequencer, TState, IDisposable> action)

Schedules an action to be executed on scheduler.

public static IDisposable Schedule<TState>(ISequencer scheduler, TState state, Action<TState> action)

Schedules a stateful action on scheduler without capturing state in a closure.

public static IDisposable Schedule<TState>(ISequencer scheduler, TState state, TimeSpan dueTime, Func<ISequencer, TState, IDisposable> action)

Schedules an action on scheduler after a relative due time.

public static IDisposable Schedule<TState>(ISequencer scheduler, TState state, TimeSpan dueTime, Action<TState> action)

Schedules a stateful action on scheduler after a relative due time.

public static IDisposable Schedule<TState>(ISequencer scheduler, TState state, long dueTimestamp, Action<TState> action)

Schedules a stateful action on scheduler at a monotonic timestamp.

public static IDisposable Schedule<TState>(ISequencer scheduler, TState state, DateTimeOffset dueTime, Func<ISequencer, TState, IDisposable> action)

Schedules an action on scheduler at an absolute wall-clock due time.

public static IDisposable Schedule(ISequencer scheduler, Action action)

Schedules an action on scheduler.

public static IDisposable Schedule(ISequencer scheduler, TimeSpan dueTime, Action action)

Schedules an action on scheduler after the specified relative due time.

public static IDisposable Schedule(ISequencer scheduler, DateTimeOffset dueTime, Action action)

Schedules an action on scheduler at the specified absolute due time.

public static IDisposable Schedule(ISequencer scheduler, Action<Action> action)

Schedules a recursive action on scheduler.

public static IDisposable ScheduleAction<TState>(ISequencer scheduler, TState state, Action<TState> action)

Schedules a stateful action on scheduler.

public static IDisposable ScheduleAction<TState>(ISequencer scheduler, TState state, Func<TState, IDisposable> action)

Schedules a stateful disposable-returning action on scheduler.

public static IDisposable ScheduleAction<TState>(ISequencer scheduler, TState state, TimeSpan dueTime, Action<TState> action)

Schedules a stateful action on scheduler after the specified relative due time.

public static IDisposable ScheduleAction<TState>(ISequencer scheduler, TState state, TimeSpan dueTime, Func<TState, IDisposable> action)

Schedules a stateful disposable-returning action on scheduler after the specified relative due time.

public static IDisposable ScheduleAction<TState>(ISequencer scheduler, TState state, DateTimeOffset dueTime, Action<TState> action)

Schedules a stateful action on scheduler at the specified absolute due time.

public static IDisposable ScheduleAction<TState>(ISequencer scheduler, TState state, DateTimeOffset dueTime, Func<TState, IDisposable> action)

Schedules a stateful disposable-returning action on scheduler at the specified absolute due time.