Microsoft.Threading.Tasks Provides extension methods for threading-related types. Cancels the after the specified duration. The CancellationTokenSource. The due time in milliseconds for the source to be canceled. Cancels the after the specified duration. The CancellationTokenSource. The due time for the source to be canceled. Gets an awaiter used to await this . The task to await. An awaiter instance. Gets an awaiter used to await this . Specifies the type of data returned by the task. The task to await. An awaiter instance. Creates and configures an awaitable object for awaiting the specified task. The task to be awaited. true to automatic marshag back to the original call site's current SynchronizationContext or TaskScheduler; otherwise, false. The instance to be awaited. Creates and configures an awaitable object for awaiting the specified task. The task to be awaited. true to automatic marshag back to the original call site's current SynchronizationContext or TaskScheduler; otherwise, false. The instance to be awaited. Event handler for progress reports. Specifies the type of data for the progress report. The sender of the report. The reported value. Provides an IProgress{T} that invokes callbacks for each reported progress value. Specifies the type of the progress report value. Any handler provided to the constructor or event handlers registered with the event are invoked through a instance captured when the instance is constructed. If there is no current SynchronizationContext at the time of construction, the callbacks will be invoked on the ThreadPool. The synchronization context captured upon construction. This will never be null. The handler specified to the constructor. This may be null. A cached delegate used to post invocation to the synchronization context. Initializes the . Initializes the with the specified callback. A handler to invoke for each reported progress value. This handler will be invoked in addition to any delegates registered with the event. The is null (Nothing in Visual Basic). Reports a progress change. The value of the updated progress. Reports a progress change. The value of the updated progress. Invokes the action and event callbacks. The progress value. Raised for each reported progress value. Handlers registered with this event will be invoked on the captured when the instance was constructed. Holds static values for . This avoids one static instance per type T. A default synchronization context that targets the ThreadPool. Throws the exception on the ThreadPool. The exception to propagate. The target context on which to propagate the exception. Null to use the ThreadPool. Copies the exception's stack trace so its stack trace isn't overwritten. The exception to prepare. Provides an awaitable object that allows for configured awaits on . This type is intended for compiler use only. The task being awaited. Initializes the . The awaitable . true to attempt to marshal the continuation back to the original context captured; otherwise, false. Gets an awaiter for this awaitable. The awaiter. Provides an awaiter for a . This type is intended for compiler use only. The task being awaited. Whether to attempt marshaling back to the original context. Initializes the . The to await. true to attempt to marshal the continuation back to the original context captured when BeginAwait is called; otherwise, false. Schedules the continuation onto the associated with this . The action to invoke when the await operation completes. The argument is null (Nothing in Visual Basic). The awaiter was not properly initialized. This method is intended for compiler user rather than use directly in code. Schedules the continuation onto the associated with this . The action to invoke when the await operation completes. The argument is null (Nothing in Visual Basic). The awaiter was not properly initialized. This method is intended for compiler user rather than use directly in code. Ends the await on the completed . The result of the completed . The awaiter was not properly initialized. The task was not yet completed. The task was canceled. The task completed in a Faulted state. Gets whether the task being awaited is completed. This property is intended for compiler user rather than use directly in code. The awaiter was not properly initialized. Provides an awaitable object that allows for configured awaits on . This type is intended for compiler use only. The underlying awaitable on whose logic this awaitable relies. Initializes the . The awaitable . true to attempt to marshal the continuation back to the original context captured; otherwise, false. Gets an awaiter for this awaitable. The awaiter. Provides an awaiter for a . This type is intended for compiler use only. The task being awaited. Whether to attempt marshaling back to the original context. Initializes the . The awaitable . true to attempt to marshal the continuation back to the original context captured; otherwise, false. Schedules the continuation onto the associated with this . The action to invoke when the await operation completes. The argument is null (Nothing in Visual Basic). The awaiter was not properly initialized. This method is intended for compiler user rather than use directly in code. Schedules the continuation onto the associated with this . The action to invoke when the await operation completes. The argument is null (Nothing in Visual Basic). The awaiter was not properly initialized. This method is intended for compiler user rather than use directly in code. Ends the await on the completed . The result of the completed . The awaiter was not properly initialized. The task was not yet completed. The task was canceled. The task completed in a Faulted state. Gets whether the task being awaited is completed. This property is intended for compiler user rather than use directly in code. The awaiter was not properly initialized. Provides an awaiter for awaiting a . This type is intended for compiler use only. The default value to use for continueOnCapturedContext. Error message for GetAwaiter. The task being awaited. Initializes the . The to be awaited. Schedules the continuation onto the associated with this . The action to invoke when the await operation completes. The argument is null (Nothing in Visual Basic). The awaiter was not properly initialized. This method is intended for compiler user rather than use directly in code. Schedules the continuation onto the associated with this . The action to invoke when the await operation completes. The argument is null (Nothing in Visual Basic). The awaiter was not properly initialized. This method is intended for compiler user rather than use directly in code. Ends the await on the completed . The awaiter was not properly initialized. The task was not yet completed. The task was canceled. The task completed in a Faulted state. Fast checks for the end of an await operation to determine whether more needs to be done prior to completing the await. The awaited task. Handles validations on tasks that aren't successfully completed. The awaited task. Throws an exception to handle a task that completed in a state other than RanToCompletion. Schedules the continuation onto the associated with this . The awaited task. The action to invoke when the await operation completes. Whether to capture and marshal back to the current context. The argument is null (Nothing in Visual Basic). The awaiter was not properly initialized. This method is intended for compiler user rather than use directly in code. Invokes the delegate in a try/catch that will propagate the exception asynchronously on the ThreadPool. Copies the exception's stack trace so its stack trace isn't overwritten. The exception to prepare. Gets whether the task being awaited is completed. This property is intended for compiler user rather than use directly in code. The awaiter was not properly initialized. Whether the current thread is appropriate for inlining the await continuation. Provides an awaiter for awaiting a . This type is intended for compiler use only. The task being awaited. Initializes the . The to be awaited. Schedules the continuation onto the associated with this . The action to invoke when the await operation completes. The argument is null (Nothing in Visual Basic). The awaiter was not properly initialized. This method is intended for compiler user rather than use directly in code. Schedules the continuation onto the associated with this . The action to invoke when the await operation completes. The argument is null (Nothing in Visual Basic). The awaiter was not properly initialized. This method is intended for compiler user rather than use directly in code. Ends the await on the completed . The result of the completed . The awaiter was not properly initialized. The task was not yet completed. The task was canceled. The task completed in a Faulted state. Gets whether the task being awaited is completed. This property is intended for compiler user rather than use directly in code. The awaiter was not properly initialized. Provides an awaitable context for switching into a target environment. This type is intended for compiler use only. Gets an awaiter for this . An awaiter for this awaitable. This method is intended for compiler user rather than use directly in code. Provides an awaiter that switches into a target environment. This type is intended for compiler use only. A completed task. Posts the back to the current context. The action to invoke asynchronously. The awaiter was not properly initialized. Posts the back to the current context. The action to invoke asynchronously. The awaiter was not properly initialized. Ends the await operation. Gets whether a yield is not required. This property is intended for compiler user rather than use directly in code. Provides methods for creating and manipulating tasks. Creates a task that runs the specified action. The action to execute asynchronously. A task that represents the completion of the action. The argument is null. Creates a task that runs the specified action. The action to execute. The CancellationToken to use to request cancellation of this task. A task that represents the completion of the action. The argument is null. Creates a task that runs the specified function. The function to execute asynchronously. A task that represents the completion of the action. The argument is null. Creates a task that runs the specified function. The action to execute. The CancellationToken to use to cancel the task. A task that represents the completion of the action. The argument is null. Creates a task that runs the specified function. The action to execute asynchronously. A task that represents the completion of the action. The argument is null. Creates a task that runs the specified function. The function to execute. The CancellationToken to use to request cancellation of this task. A task that represents the completion of the function. The argument is null. Creates a task that runs the specified function. The function to execute asynchronously. A task that represents the completion of the action. The argument is null. Creates a task that runs the specified function. The action to execute. The CancellationToken to use to cancel the task. A task that represents the completion of the action. The argument is null. Starts a Task that will complete after the specified due time. The delay in milliseconds before the returned task completes. The timed Task. The argument must be non-negative or -1 and less than or equal to Int32.MaxValue. Starts a Task that will complete after the specified due time. The delay before the returned task completes. The timed Task. The argument must be non-negative or -1 and less than or equal to Int32.MaxValue. Starts a Task that will complete after the specified due time. The delay before the returned task completes. A CancellationToken that may be used to cancel the task before the due time occurs. The timed Task. The argument must be non-negative or -1 and less than or equal to Int32.MaxValue. Starts a Task that will complete after the specified due time. The delay in milliseconds before the returned task completes. A CancellationToken that may be used to cancel the task before the due time occurs. The timed Task. The argument must be non-negative or -1 and less than or equal to Int32.MaxValue. An already completed task. Creates a Task that will complete only when all of the provided collection of Tasks has completed. The Tasks to monitor for completion. A Task that represents the completion of all of the provided tasks. If any of the provided Tasks faults, the returned Task will also fault, and its Exception will contain information about all of the faulted tasks. If no Tasks fault but one or more Tasks is canceled, the returned Task will also be canceled. The argument is null. The argument contains a null reference. Creates a Task that will complete only when all of the provided collection of Tasks has completed. The Tasks to monitor for completion. A Task that represents the completion of all of the provided tasks. If any of the provided Tasks faults, the returned Task will also fault, and its Exception will contain information about all of the faulted tasks. If no Tasks fault but one or more Tasks is canceled, the returned Task will also be canceled. The argument is null. The argument contains a null reference. Creates a Task that will complete only when all of the provided collection of Tasks has completed. The Tasks to monitor for completion. A Task that represents the completion of all of the provided tasks. If any of the provided Tasks faults, the returned Task will also fault, and its Exception will contain information about all of the faulted tasks. If no Tasks fault but one or more Tasks is canceled, the returned Task will also be canceled. The argument is null. The argument contains a null reference. Creates a Task that will complete only when all of the provided collection of Tasks has completed. The Tasks to monitor for completion. A Task that represents the completion of all of the provided tasks. If any of the provided Tasks faults, the returned Task will also fault, and its Exception will contain information about all of the faulted tasks. If no Tasks fault but one or more Tasks is canceled, the returned Task will also be canceled. The argument is null. The argument contains a null reference. Creates a Task that will complete only when all of the provided collection of Tasks has completed. The Tasks to monitor for completion. A callback invoked when all of the tasks complete successfully in the RanToCompletion state. This callback is responsible for storing the results into the TaskCompletionSource. A Task that represents the completion of all of the provided tasks. The argument is null. The argument contains a null reference. Creates a Task that will complete when any of the tasks in the provided collection completes. The Tasks to be monitored. A Task that represents the completion of any of the provided Tasks. The completed Task is this Task's result. Any Tasks that fault will need to have their exceptions observed elsewhere. The argument is null. The argument contains a null reference. Creates a Task that will complete when any of the tasks in the provided collection completes. The Tasks to be monitored. A Task that represents the completion of any of the provided Tasks. The completed Task is this Task's result. Any Tasks that fault will need to have their exceptions observed elsewhere. The argument is null. The argument contains a null reference. Creates a Task that will complete when any of the tasks in the provided collection completes. The Tasks to be monitored. A Task that represents the completion of any of the provided Tasks. The completed Task is this Task's result. Any Tasks that fault will need to have their exceptions observed elsewhere. The argument is null. The argument contains a null reference. Creates a Task that will complete when any of the tasks in the provided collection completes. The Tasks to be monitored. A Task that represents the completion of any of the provided Tasks. The completed Task is this Task's result. Any Tasks that fault will need to have their exceptions observed elsewhere. The argument is null. The argument contains a null reference. Creates an already completed from the specified result. The result from which to create the completed task. The completed task. Creates an awaitable that asynchronously yields back to the current context when awaited. A context that, when awaited, will asynchronously transition back into the current context. If SynchronizationContext.Current is non-null, that is treated as the current context. Otherwise, TaskScheduler.Current is treated as the current context. Adds the target exception to the list, initializing the list if it's null. The list to which to add the exception and initialize if the list is null. The exception to add, and unwrap if it's an aggregate. Returns a canceled task. The cancellation token. The canceled task. Returns a canceled task. Specifies the type of the result. The cancellation token. The canceled task. Completes the Task if the user state matches the TaskCompletionSource. Specifies the type of data returned by the Task. The TaskCompletionSource. The completion event arguments. Whether we require the tcs to match the e.UserState. A function that gets the result with which to complete the task. An action used to unregister work when the operaiton completes.