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

System.Reactive.Concurrency.EventLoopScheduler

Represents an object that schedules units of work on a designated thread.
namespace System.Reactive.Concurrency { public sealed class EventLoopScheduler : LocalScheduler, ISchedulerPeriodic, IDisposable { public EventLoopScheduler(); public EventLoopScheduler(Func<ThreadStart, Thread> threadFactory); public IDisposable SchedulePeriodic<[System.Runtime.CompilerServices.Nullable(2)] TState>(TState state, TimeSpan period, Func<TState, TState> action); public void Dispose(); } }