.NET Framework Class Librar ...


.NET Framework Class Library
System.Threading.Tasks Namespace

The System.Threadings.Tasks namespace provides types that simplify the work of writing concurrent and asynchronous code. The main types are Task which represents an asynchronous operation that can be waited on and cancelled, and Task<(Of <(TResult>)>), which is a task that can return a value. The Factory class provides static methods for creating and starting tasks, and the TaskScheduler class provides the default thread scheduling infrastructure.

Classes

  ClassDescription
Public classParallelProvides support for parallel loops and regions.
Public classParallelLoopStateEnables iterations of Parallel loops to interact with other iterations. An instance of this class is provided by the Parallel class to each loop; you can not create instances in your user code.
Public classParallelOptionsStores options that configure the operation of methods on the Parallel class.
Public classTaskRepresents an asynchronous operation.
Public classTask<(Of <(TResult>)>)Represents an asynchronous operation that can return a value.
Public classTaskCanceledExceptionRepresents an exception used to communicate task cancellation.
Public classTaskCompletionSource<(Of <(TResult>)>)Represents the producer side of a Task<(Of <(TResult>)>) unbound to a delegate, providing access to the consumer side through the Task property.
Public classTaskExtensionsProvides a set of static (Shared in Visual Basic) methods for working with specific kinds of Task instances.
Public classTaskFactoryProvides support for creating and scheduling Task objects.
Public classTaskFactory<(Of <(TResult>)>)Provides support for creating and scheduling Task<(Of <(TResult>)>) objects.
Public classTaskSchedulerRepresents an object that handles the low-level work of queuing tasks onto threads.
Public classTaskSchedulerExceptionRepresents an exception used to communicate an invalid operation by a TaskScheduler.
Public classUnobservedTaskExceptionEventArgsProvides data for the event that is raised when a faulted Task's exception goes unobserved.
Structures

  StructureDescription
Public structureParallelLoopResultProvides completion status on the execution of a Parallel loop.
Enumerations

  EnumerationDescription
Public enumerationTaskContinuationOptionsSpecifies the behavior for a task that is created by using the ContinueWith or ContinueWith method.
Public enumerationTaskCreationOptionsSpecifies flags that control optional behavior for the creation and execution of tasks.
Public enumerationTaskStatusRepresents the current stage in the lifecycle of a Task.
Page view tracker