TaskAsyncEnumerableExtensions.ConfigureAwait Método
Definición
Sobrecargas
ConfigureAwait(IAsyncDisposable, Boolean) |
Configura la forma en la que se realizan las expresiones await en las tareas devueltas desde un elemento asincrónico descartable.Configures how awaits on the tasks returned from an async disposable are performed. |
ConfigureAwait<T>(IAsyncEnumerable<T>, Boolean) |
Configura la forma en la que se realizan las expresiones await en las tareas devueltas desde una iteración asincrónica.Configures how awaits on the tasks returned from an async iteration are performed. |
ConfigureAwait(IAsyncDisposable, Boolean)
Configura la forma en la que se realizan las expresiones await en las tareas devueltas desde un elemento asincrónico descartable.Configures how awaits on the tasks returned from an async disposable are performed.
public:
[System::Runtime::CompilerServices::Extension]
static System::Runtime::CompilerServices::ConfiguredAsyncDisposable ConfigureAwait(IAsyncDisposable ^ source, bool continueOnCapturedContext);
public static System.Runtime.CompilerServices.ConfiguredAsyncDisposable ConfigureAwait (this IAsyncDisposable source, bool continueOnCapturedContext);
static member ConfigureAwait : IAsyncDisposable * bool -> System.Runtime.CompilerServices.ConfiguredAsyncDisposable
<Extension()>
Public Function ConfigureAwait (source As IAsyncDisposable, continueOnCapturedContext As Boolean) As ConfiguredAsyncDisposable
Parámetros
- source
- IAsyncDisposable
Origen asincrónico desechable.The source async disposable.
- continueOnCapturedContext
- Boolean
true
para capturar y volver a serializar las referencias al contexto actual; en caso contrario, es false
.true
to capture and marshal back to the current context; otherwise, false
.
Devoluciones
Elemento descartable asincrónico configurado.The configured async disposable.
Se aplica a
ConfigureAwait<T>(IAsyncEnumerable<T>, Boolean)
Configura la forma en la que se realizan las expresiones await en las tareas devueltas desde una iteración asincrónica.Configures how awaits on the tasks returned from an async iteration are performed.
public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
static System::Runtime::CompilerServices::ConfiguredCancelableAsyncEnumerable<T> ConfigureAwait(System::Collections::Generic::IAsyncEnumerable<T> ^ source, bool continueOnCapturedContext);
public static System.Runtime.CompilerServices.ConfiguredCancelableAsyncEnumerable<T>? ConfigureAwait<T> (this System.Collections.Generic.IAsyncEnumerable<T> source, bool continueOnCapturedContext);
public static System.Runtime.CompilerServices.ConfiguredCancelableAsyncEnumerable<T> ConfigureAwait<T> (this System.Collections.Generic.IAsyncEnumerable<T> source, bool continueOnCapturedContext);
static member ConfigureAwait : System.Collections.Generic.IAsyncEnumerable<'T> * bool -> System.Runtime.CompilerServices.ConfiguredCancelableAsyncEnumerable<'T>
<Extension()>
Public Function ConfigureAwait(Of T) (source As IAsyncEnumerable(Of T), continueOnCapturedContext As Boolean) As ConfiguredCancelableAsyncEnumerable(Of T)
Parámetros de tipo
- T
Tipo de los objetos que se van a iterar.The type of the objects to iterate.
Parámetros
- source
- IAsyncEnumerable<T>
Origen enumerable para iterar.The source enumerable to iterate.
- continueOnCapturedContext
- Boolean
true
para capturar y volver a serializar las referencias al contexto actual; en caso contrario, es false
.true
to capture and marshal back to the current context; otherwise, false
.
Devoluciones
Elemento enumerable configurado.The configured enumerable.