TaskAsyncEnumerableExtensions.ConfigureAwait Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Surcharges
ConfigureAwait(IAsyncDisposable, Boolean) |
Configure la façon dont les attentes sur les tâches retournées à partir d’un élément supprimable asynchrone sont effectuées. |
ConfigureAwait<T>(IAsyncEnumerable<T>, Boolean) |
Configure la façon dont les attentes sur les tâches retournées à partir d’une itération asynchrone sont effectuées. |
ConfigureAwait(IAsyncDisposable, Boolean)
Configure la façon dont les attentes sur les tâches retournées à partir d’un élément supprimable asynchrone sont effectuées.
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
Paramètres
- source
- IAsyncDisposable
Élément supprimable asynchrone source.
- continueOnCapturedContext
- Boolean
true
pour capturer et marshaler en retour vers le contexte actuel ; sinon, false
.
Retours
Élément supprimable asynchrone configuré.
S’applique à
ConfigureAwait<T>(IAsyncEnumerable<T>, Boolean)
Configure la façon dont les attentes sur les tâches retournées à partir d’une itération asynchrone sont effectuées.
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);
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)
Paramètres de type
- T
Type des objets à itérer.
Paramètres
- source
- IAsyncEnumerable<T>
Énumérable source sur lequel boucler.
- continueOnCapturedContext
- Boolean
true
pour capturer et marshaler en retour vers le contexte actuel ; sinon, false
.
Retours
Énumérable configuré.