TaskScheduler.cs
Go to the documentation of this file.
75 throw new InvalidOperationException ("The current SynchronizationContext is null and cannot be used as a TaskScheduler");
142 throw new InvalidOperationException ("The TryExecuteTaskInline call to the underlying scheduler succeeded, but the task body was not invoked");
147 internal static UnobservedTaskExceptionEventArgs FireUnobservedEvent (Task task, AggregateException e)
abstract IEnumerable< Task > GetScheduledTasks()
static TaskScheduler Current
Definition: TaskScheduler.cs:86
Definition: AggregateException.cs:31
virtual int MaximumConcurrencyLevel
Definition: TaskScheduler.cs:104
abstract bool TryExecuteTaskInline(Task task, bool taskWasPreviouslyQueued)
static TaskScheduler FromCurrentSynchronizationContext()
Definition: TaskScheduler.cs:71
static TaskScheduler Default
Definition: TaskScheduler.cs:80
Definition: SynchronizationContextScheduler.cs:34
static EventHandler< UnobservedTaskExceptionEventArgs > UnobservedTaskException
Definition: TaskScheduler.cs:64
abstract internal void QueueTask(Task task)
internal bool TryExecuteTask(Task task)
Definition: TaskScheduler.cs:118
Definition: IStructuralComparable.cs:33
virtual internal bool TryDequeue(Task task)
Definition: TaskScheduler.cs:113
Definition: Task.cs:43