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

ISchedulerLongRunning

public interface ISchedulerLongRunning
Scheduler with support for starting long-running tasks. This type of scheduler can be used to run loops more efficiently instead of using recursive scheduling.
using System.Reactive.Disposables; using System.Runtime.CompilerServices; namespace System.Reactive.Concurrency { [System.Runtime.CompilerServices.NullableContext(1)] public interface ISchedulerLongRunning { IDisposable ScheduleLongRunning<[System.Runtime.CompilerServices.Nullable(2)] TState>(TState state, Action<TState, ICancelable> action); } }