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

ReactiveUI.Primitives.Concurrency.ImmediateSequencer

public sealed class ImmediateSequencer : ISequencer
A sequencer that executes work immediately on the calling thread.
public static ImmediateSequencer Instance { get; }

Gets the singleton instance of the immediate scheduler.

public DateTimeOffset Now { get; }

Gets the scheduler's notion of current time.

public long Timestamp { get; }

Gets the scheduler's monotonic timestamp.

public ImmediateSequencer(TimeProvider timeProvider)

Initializes a new instance of the ImmediateSequencer class that reads time and waits through a TimeProvider.

public static IDisposable Schedule(Action action)

Schedules an action to run immediately.

public void Schedule(IWorkItem item)

Executes the work item on the calling thread unless it has been cancelled.

public void Schedule(IWorkItem item, long dueTimestamp)

Blocks the calling thread until the due timestamp, then executes the work item unless it has been cancelled.