Task Methods

 

Namespace:   System.Threading.Tasks
Assembly:  mscorlib (in mscorlib.dll)

NameDescription
System_CAPS_pubmethodConfigureAwait(Boolean)

Configures an awaiter used to await this Task.

System_CAPS_pubmethodContinueWith(Action<Task, Object>, Object)

Creates a continuation that receives caller-supplied state information and executes when the target Task completes.

System_CAPS_pubmethodContinueWith(Action<Task, Object>, Object, CancellationToken)

Creates a continuation that receives caller-supplied state information and a cancellation token and that executes asynchronously when the target Task completes.

System_CAPS_pubmethodContinueWith(Action<Task, Object>, Object, CancellationToken, TaskContinuationOptions, TaskScheduler)

Creates a continuation that receives caller-supplied state information and a cancellation token and that executes when the target Task completes. The continuation executes based on a set of specified conditions and uses a specified scheduler.

System_CAPS_pubmethodContinueWith(Action<Task, Object>, Object, TaskContinuationOptions)

Creates a continuation that receives caller-supplied state information and executes when the target Task completes. The continuation executes based on a set of specified conditions.

System_CAPS_pubmethodContinueWith(Action<Task, Object>, Object, TaskScheduler)

Creates a continuation that receives caller-supplied state information and executes asynchronously when the target Task completes. The continuation uses a specified scheduler.

System_CAPS_pubmethodContinueWith(Action<Task>)

Creates a continuation that executes asynchronously when the target Task completes.

System_CAPS_pubmethodContinueWith(Action<Task>, CancellationToken)

Creates a continuation that receives a cancellation token and executes asynchronously when the target Task completes.

System_CAPS_pubmethodContinueWith(Action<Task>, CancellationToken, TaskContinuationOptions, TaskScheduler)

Creates a continuation that executes when the target task competes according to the specified TaskContinuationOptions. The continuation receives a cancellation token and uses a specified scheduler.

System_CAPS_pubmethodContinueWith(Action<Task>, TaskContinuationOptions)

Creates a continuation that executes when the target task completes according to the specified TaskContinuationOptions.

System_CAPS_pubmethodContinueWith(Action<Task>, TaskScheduler)

Creates a continuation that executes asynchronously when the target Task completes. The continuation uses a specified scheduler.

System_CAPS_pubmethodContinueWith<TResult>(Func<Task, TResult>)

Creates a continuation that executes asynchronously when the target Task<TResult> completes and returns a value.

System_CAPS_pubmethodContinueWith<TResult>(Func<Task, TResult>, CancellationToken)

Creates a continuation that executes asynchronously when the target Task completes and returns a value. The continuation receives a cancellation token.

System_CAPS_pubmethodContinueWith<TResult>(Func<Task, TResult>, CancellationToken, TaskContinuationOptions, TaskScheduler)

Creates a continuation that executes according to the specified continuation options and returns a value. The continuation is passed a cancellation token and uses a specified scheduler.

System_CAPS_pubmethodContinueWith<TResult>(Func<Task, TResult>, TaskContinuationOptions)

Creates a continuation that executes according to the specified continuation options and returns a value.

System_CAPS_pubmethodContinueWith<TResult>(Func<Task, TResult>, TaskScheduler)

Creates a continuation that executes asynchronously when the target Task completes and returns a value. The continuation uses a specified scheduler.

System_CAPS_pubmethodContinueWith<TResult>(Func<Task, Object, TResult>, Object)

Creates a continuation that receives caller-supplied state information and executes asynchronously when the target Task completes and returns a value.

System_CAPS_pubmethodContinueWith<TResult>(Func<Task, Object, TResult>, Object, CancellationToken)

Creates a continuation that executes asynchronously when the target Task completes and returns a value. The continuation receives caller-supplied state information and a cancellation token.

System_CAPS_pubmethodContinueWith<TResult>(Func<Task, Object, TResult>, Object, CancellationToken, TaskContinuationOptions, TaskScheduler)

Creates a continuation that executes based on the specified task continuation options when the target Task completes and returns a value. The continuation receives caller-supplied state information and a cancellation token and uses the specified scheduler.

System_CAPS_pubmethodContinueWith<TResult>(Func<Task, Object, TResult>, Object, TaskContinuationOptions)

Creates a continuation that executes based on the specified task continuation options when the target Task completes. The continuation receives caller-supplied state information.

System_CAPS_pubmethodContinueWith<TResult>(Func<Task, Object, TResult>, Object, TaskScheduler)

Creates a continuation that executes asynchronously when the target Task completes. The continuation receives caller-supplied state information and uses a specified scheduler.

System_CAPS_pubmethodSystem_CAPS_staticDelay(Int32)

Creates a task that completes after a time delay.

System_CAPS_pubmethodSystem_CAPS_staticDelay(Int32, CancellationToken)

Creates a cancellable task that completes after a time delay.

System_CAPS_pubmethodSystem_CAPS_staticDelay(TimeSpan)

Creates a task that completes after a specified time interval.

System_CAPS_pubmethodSystem_CAPS_staticDelay(TimeSpan, CancellationToken)

Creates a cancellable task that completes after a specified time interval.

System_CAPS_pubmethodDispose()

Releases all resources used by the current instance of the Task class.

System_CAPS_protmethodDispose(Boolean)

Disposes the Task, releasing all of its unmanaged resources.

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_staticFromCanceled(CancellationToken)

Creates a Task that's completed due to cancellation with a specified cancellation token.

System_CAPS_pubmethodSystem_CAPS_staticFromCanceled<TResult>(CancellationToken)

Creates a Task<TResult> that's completed due to cancellation with a specified cancellation token.

System_CAPS_pubmethodSystem_CAPS_staticFromException(Exception)

Creates a Task that has completed with a specified exception.

System_CAPS_pubmethodSystem_CAPS_staticFromException<TResult>(Exception)

Creates a Task<TResult> that's completed with a specified exception.

System_CAPS_pubmethodSystem_CAPS_staticFromResult<TResult>(TResult)

Creates a Task<TResult> that's completed successfully with the specified result.

System_CAPS_pubmethodGetAwaiter()

Gets an awaiter used to await this Task.

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_staticRun(Action)

Queues the specified work to run on the thread pool and returns a Task object that represents that work.

System_CAPS_pubmethodSystem_CAPS_staticRun(Action, CancellationToken)

Queues the specified work to run on the thread pool and returns a Task object that represents that work. A cancellation token allows the work to be cancelled.

System_CAPS_pubmethodSystem_CAPS_staticRun(Func<Task>)

Queues the specified work to run on the thread pool and returns a proxy for the task returned by function.

System_CAPS_pubmethodSystem_CAPS_staticRun(Func<Task>, CancellationToken)

Queues the specified work to run on the thread pool and returns a proxy for the task returned by function.

System_CAPS_pubmethodSystem_CAPS_staticRun<TResult>(Func<TResult>)

Queues the specified work to run on the thread pool and returns a Task<TResult> object that represents that work.

System_CAPS_pubmethodSystem_CAPS_staticRun<TResult>(Func<TResult>, CancellationToken)

Queues the specified work to run on the thread pool and returns a Task(TResult) object that represents that work. A cancellation token allows the work to be cancelled.

System_CAPS_pubmethodSystem_CAPS_staticRun<TResult>(Func<Task<TResult>>)

Queues the specified work to run on the thread pool and returns a proxy for the Task(TResult) returned by function.

System_CAPS_pubmethodSystem_CAPS_staticRun<TResult>(Func<Task<TResult>>, CancellationToken)

Queues the specified work to run on the thread pool and returns a proxy for the Task(TResult) returned by function.

System_CAPS_pubmethodRunSynchronously()

Runs the Task synchronously on the current TaskScheduler.

System_CAPS_pubmethodRunSynchronously(TaskScheduler)

Runs the Task synchronously on the TaskScheduler provided.

System_CAPS_pubmethodStart()

Starts the Task, scheduling it for execution to the current TaskScheduler.

System_CAPS_pubmethodStart(TaskScheduler)

Starts the Task, scheduling it for execution to the specified TaskScheduler.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

System_CAPS_pubmethodWait()

Waits for the Task to complete execution.

System_CAPS_pubmethodWait(CancellationToken)

Waits for the Task to complete execution. The wait terminates if a cancellation token is canceled before the task completes.

System_CAPS_pubmethodWait(Int32)

Waits for the Task to complete execution within a specified number of milliseconds.

System_CAPS_pubmethodWait(Int32, CancellationToken)

Waits for the Task to complete execution. The wait terminates if a timeout interval elapses or a cancellation token is canceled before the task completes.

System_CAPS_pubmethodWait(TimeSpan)

Waits for the Task to complete execution within a specified time interval.

System_CAPS_pubmethodSystem_CAPS_staticWaitAll(Task[])

Waits for all of the provided Task objects to complete execution.

System_CAPS_pubmethodSystem_CAPS_staticWaitAll(Task[], CancellationToken)

Waits for all of the provided Task objects to complete execution unless the wait is cancelled.

System_CAPS_pubmethodSystem_CAPS_staticWaitAll(Task[], Int32)

Waits for all of the provided Task objects to complete execution within a specified number of milliseconds.

System_CAPS_pubmethodSystem_CAPS_staticWaitAll(Task[], Int32, CancellationToken)

Waits for all of the provided Task objects to complete execution within a specified number of milliseconds or until the wait is cancelled.

System_CAPS_pubmethodSystem_CAPS_staticWaitAll(Task[], TimeSpan)

Waits for all of the provided cancellable Task objects to complete execution within a specified time interval.

System_CAPS_pubmethodSystem_CAPS_staticWaitAny(Task[])

Waits for any of the provided Task objects to complete execution.

System_CAPS_pubmethodSystem_CAPS_staticWaitAny(Task[], CancellationToken)

Waits for any of the provided Task objects to complete execution unless the wait is cancelled.

System_CAPS_pubmethodSystem_CAPS_staticWaitAny(Task[], Int32)

Waits for any of the provided Task objects to complete execution within a specified number of milliseconds.

System_CAPS_pubmethodSystem_CAPS_staticWaitAny(Task[], Int32, CancellationToken)

Waits for any of the provided Task objects to complete execution within a specified number of milliseconds or until a cancellation token is cancelled.

System_CAPS_pubmethodSystem_CAPS_staticWaitAny(Task[], TimeSpan)

Waits for any of the provided Task objects to complete execution within a specified time interval.

System_CAPS_pubmethodSystem_CAPS_staticWhenAll(IEnumerable<Task>)

Creates a task that will complete when all of the Task objects in an enumerable collection have completed.

System_CAPS_pubmethodSystem_CAPS_staticWhenAll(Task[])

Creates a task that will complete when all of the Task objects in an array have completed.

System_CAPS_pubmethodSystem_CAPS_staticWhenAll<TResult>(IEnumerable<Task<TResult>>)

Creates a task that will complete when all of the Task<TResult> objects in an enumerable collection have completed.

System_CAPS_pubmethodSystem_CAPS_staticWhenAll<TResult>(Task<TResult>[])

Creates a task that will complete when all of the Task<TResult> objects in an array have completed.

System_CAPS_pubmethodSystem_CAPS_staticWhenAny(IEnumerable<Task>)

Creates a task that will complete when any of the supplied tasks have completed.

System_CAPS_pubmethodSystem_CAPS_staticWhenAny(Task[])

Creates a task that will complete when any of the supplied tasks have completed.

System_CAPS_pubmethodSystem_CAPS_staticWhenAny<TResult>(IEnumerable<Task<TResult>>)

Creates a task that will complete when any of the supplied tasks have completed.

System_CAPS_pubmethodSystem_CAPS_staticWhenAny<TResult>(Task<TResult>[])

Creates a task that will complete when any of the supplied tasks have completed.

System_CAPS_pubmethodSystem_CAPS_staticYield()

Creates an awaitable task that asynchronously yields back to the current context when awaited.

NameDescription
System_CAPS_pubmethodDispatcherOperationWait()

Overloaded. Waits indefinitely for the underlying DispatcherOperation to complete.(Defined by TaskExtensions.)

System_CAPS_pubmethodDispatcherOperationWait(TimeSpan)

Overloaded. Waits for the specified amount of time for the underlying DispatcherOperation to complete.(Defined by TaskExtensions.)

System_CAPS_pubmethodIsDispatcherOperationTask()

Returns a value that indicates whether this Task is associated with a DispatcherOperation.(Defined by TaskExtensions.)

Return to top
Show: