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

ReactiveUI.Primitives.Concurrency.ThreadPoolSequencer

public sealed class ThreadPoolSequencer : ISequencer, IDisposable
A sequencer that schedules work on the thread pool.
public static readonly ThreadPoolSequencer Instance

Gets the shared thread-pool scheduler instance.

public DateTimeOffset Now { get; }

Gets the scheduler's notion of current time.

public long Timestamp { get; }

Gets the scheduler's monotonic timestamp.

public ThreadPoolSequencer(TimeProvider timeProvider)

Initializes a new instance of the ThreadPoolSequencer class that reads time and arms its delay timer through a TimeProvider.

public void Dispose()

Cancels pending delayed work and rejects further scheduling, allowing work already picked up by the thread pool to finish.

public void Schedule(IWorkItem item)

Schedules a work item to be executed through the thread pool.

public void Schedule(IWorkItem item, long dueTimestamp)

Schedules a work item to be executed through the thread pool at a monotonic timestamp.