<PackageReference Include="NETStandard.Library" Version="2.0.0" />

System.Threading.Tasks.TaskScheduler

public abstract class TaskScheduler
namespace System.Threading.Tasks { public abstract class TaskScheduler { public static TaskScheduler Current { get; } public static TaskScheduler Default { get; } public int Id { get; } public virtual int MaximumConcurrencyLevel { get; } public static event EventHandler<UnobservedTaskExceptionEventArgs> UnobservedTaskException; protected TaskScheduler(); public static TaskScheduler FromCurrentSynchronizationContext(); protected abstract IEnumerable<Task> GetScheduledTasks(); protected bool TryExecuteTask(Task task); protected abstract bool TryExecuteTaskInline(Task task, bool taskWasPreviouslyQueued); } }