Task<TResult>.ConfigureAwait(Boolean) Method

Definition

Configures an awaiter used to await this Task<TResult>.

public System.Runtime.CompilerServices.ConfiguredTaskAwaitable<TResult> ConfigureAwait (bool continueOnCapturedContext);
Parameters
continueOnCapturedContext
Boolean

true to attempt to marshal the continuation back to the original context captured; otherwise, false.

Returns

An object used to await this task.

Applies to