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

IScheduler

public interface IScheduler
using System.Runtime.CompilerServices; namespace System.Reactive.Concurrency { [NullableContext(1)] public interface IScheduler { DateTimeOffset Now { get; } IDisposable Schedule<[Nullable(2)] TState>(TState state, Func<IScheduler, TState, IDisposable> action); IDisposable Schedule<[Nullable(2)] TState>(TState state, TimeSpan dueTime, Func<IScheduler, TState, IDisposable> action); IDisposable Schedule<[Nullable(2)] TState>(TState state, DateTimeOffset dueTime, Func<IScheduler, TState, IDisposable> action); } }