<PackageReference Include="System.Reactive" Version="6.0.1-preview.1" />

IScheduler

public interface IScheduler
Represents an object that schedules units of work.

Gets the scheduler's notion of current time.

IDisposable Schedule<TState>(TState state, Func<IScheduler, TState, IDisposable> action)

Schedules an action to be executed.

IDisposable Schedule<TState>(TState state, TimeSpan dueTime, Func<IScheduler, TState, IDisposable> action)

Schedules an action to be executed after dueTime.

IDisposable Schedule<TState>(TState state, DateTimeOffset dueTime, Func<IScheduler, TState, IDisposable> action)

Schedules an action to be executed at dueTime.