<PackageReference Include="System.Reactive" Version="5.0.0-preview.16" />

CurrentThreadScheduler

public sealed class CurrentThreadScheduler : LocalScheduler
Represents an object that schedules units of work on the current thread.
public static CurrentThreadScheduler Instance { get; }

Gets the singleton instance of the current thread scheduler.

public static bool IsScheduleRequired { get; }

Gets a value that indicates whether the caller must call a Schedule method.

public bool ScheduleRequired { get; }

Gets a value that indicates whether the caller must call a Schedule method.