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

ReactiveUI.Primitives.Concurrency.CurrentThreadSequencer

public sealed class CurrentThreadSequencer : ISequencer
A sequencer that schedules work on the current thread using a trampoline queue.
public static CurrentThreadSequencer Instance { get; }

Gets the singleton instance of the current thread scheduler.

public static bool IsScheduleRequired { get; }

Gets a value indicating whether the caller must schedule work instead of running it inline, true when the current thread is outside any scheduled call.

public DateTimeOffset Now { get; }

Gets the scheduler's notion of current time.

public long Timestamp { get; }

Gets the scheduler's monotonic timestamp.

public CurrentThreadSequencer(TimeProvider timeProvider)

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

public IDisposable Schedule(Action action)

Schedules an action to be executed on the current-thread trampoline.

public void Schedule(IWorkItem item)

Schedules a work item to be executed.

public void Schedule(IWorkItem item, long dueTimestamp)

Runs the work item on the calling thread once due, blocking until then, or queues it on the trampoline when that thread is running scheduled work.