TaskAsyncEnumerableExtensions.ConfigureAwait Metoda
Definice
Přetížení
| ConfigureAwait(IAsyncDisposable, Boolean) |
Konfiguruje, jak se provádí funkce await u úloh vrácených z asynchronního použití.Configures how awaits on the tasks returned from an async disposable are performed. |
| ConfigureAwait<T>(IAsyncEnumerable<T>, Boolean) |
Konfiguruje, jak se provádí funkce await u úloh vrácených asynchronní iterací.Configures how awaits on the tasks returned from an async iteration are performed. |
ConfigureAwait(IAsyncDisposable, Boolean)
Konfiguruje, jak se provádí funkce await u úloh vrácených z asynchronního použití.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
Parametry
- source
- IAsyncDisposable
Zdrojový asynchronní na použití.The source async disposable.
- continueOnCapturedContext
- Boolean
true pro zachycení a zařazování zpět do aktuálního kontextu; v opačném případě false .true to capture and marshal back to the current context; otherwise, false.
Návraty
Nakonfigurovaná Async na jedno použití.The configured async disposable.
Platí pro
ConfigureAwait<T>(IAsyncEnumerable<T>, Boolean)
Konfiguruje, jak se provádí funkce await u úloh vrácených asynchronní iterací.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);
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)
Parametry typu
- T
Typ objektů, které se mají iterovat.The type of the objects to iterate.
Parametry
- source
- IAsyncEnumerable<T>
Zdrojový Výčtový pro iteraci.The source enumerable to iterate.
- continueOnCapturedContext
- Boolean
true pro zachycení a zařazování zpět do aktuálního kontextu; v opačném případě false .true to capture and marshal back to the current context; otherwise, false.
Návraty
Konfigurovaný Výčtový.The configured enumerable.