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

System.Reactive.Concurrency.DispatcherScheduler

Represents an object that schedules units of work on a Dispatcher.
namespace System.Reactive.Concurrency { public class DispatcherScheduler : LocalScheduler, ISchedulerPeriodic { public static DispatcherScheduler Instance { get; } public static DispatcherScheduler Current { get; } public Dispatcher Dispatcher { get; } public DispatcherPriority Priority { get; } public DispatcherScheduler(Dispatcher dispatcher); public DispatcherScheduler(Dispatcher dispatcher, DispatcherPriority priority); public IDisposable SchedulePeriodic<[System.Runtime.CompilerServices.Nullable(2)] TState>(TState state, TimeSpan period, Func<TState, TState> action); } }