Task<TResult>.ConfigureAwait(Boolean) Method
Definition
Configures an awaiter used to await this Task<TResult>.
public:
System::Runtime::CompilerServices::ConfiguredTaskAwaitable<TResult> ConfigureAwait(bool continueOnCapturedContext);
public System.Runtime.CompilerServices.ConfiguredTaskAwaitable<TResult> ConfigureAwait (bool continueOnCapturedContext);
public System.Runtime.CompilerServices.ConfiguredTaskAwaitable<TResult>? ConfigureAwait (bool continueOnCapturedContext);
override this.ConfigureAwait : bool -> System.Runtime.CompilerServices.ConfiguredTaskAwaitable<'Result>
Public Function ConfigureAwait (continueOnCapturedContext As Boolean) As ConfiguredTaskAwaitable(Of TResult)
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.