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

System.Reactive.Concurrency.LocalScheduler

namespace System.Reactive.Concurrency { public abstract class LocalScheduler : IScheduler, IStopwatchProvider, IServiceProvider { public virtual DateTimeOffset Now { get; } public virtual IDisposable Schedule<[Nullable(2)] TState>(TState state, Func<IScheduler, TState, IDisposable> action); public abstract IDisposable Schedule<[Nullable(2)] TState>(TState state, TimeSpan dueTime, Func<IScheduler, TState, IDisposable> action); public virtual IDisposable Schedule<[Nullable(2)] TState>(TState state, DateTimeOffset dueTime, Func<IScheduler, TState, IDisposable> action); public virtual IStopwatch StartStopwatch(); protected virtual object GetService(Type serviceType); protected LocalScheduler(); } }