<PackageReference Include="System.Reactive" Version="4.1.4" />

IScheduler

public interface IScheduler
Represents an object that schedules units of work.
namespace System.Reactive.Concurrency { public interface IScheduler { DateTimeOffset Now { get; } IDisposable Schedule<TState>(TState state, Func<IScheduler, TState, IDisposable> action); IDisposable Schedule<TState>(TState state, TimeSpan dueTime, Func<IScheduler, TState, IDisposable> action); IDisposable Schedule<TState>(TState state, DateTimeOffset dueTime, Func<IScheduler, TState, IDisposable> action); } }