System.Threading.Tasks.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);
}
}