Task<TResult>.ConfigureAwait(Boolean) Método

Definición

Configura un awaiter utilizado para esperar a este objeto Task<TResult>.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);
override this.ConfigureAwait : bool -> System.Runtime.CompilerServices.ConfiguredTaskAwaitable<'Result>
Public Function ConfigureAwait (continueOnCapturedContext As Boolean) As ConfiguredTaskAwaitable(Of TResult)

Parámetros

continueOnCapturedContext
Boolean

true para intentar calcular las referencias de la continuación de nuevo al contexto original capturado; de lo contrario, false.true to attempt to marshal the continuation back to the original context captured; otherwise, false.

Devoluciones

Objeto utilizado para esperar a esta tarea.An object used to await this task.

Se aplica a