TaskAsyncEnumerableExtensions.ConfigureAwait メソッド

定義

オーバーロード

ConfigureAwait(IAsyncDisposable, Boolean)

非同期の破棄可能から返されるタスク上での待機がどのように実行されるかを構成します。

ConfigureAwait<T>(IAsyncEnumerable<T>, Boolean)

非同期イテレーションから返されるタスク上での待機がどのように実行されるかを構成します。

ConfigureAwait(IAsyncDisposable, Boolean)

非同期の破棄可能から返されるタスク上での待機がどのように実行されるかを構成します。

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

パラメーター

source
IAsyncDisposable

非同期の破棄可能なソース。

continueOnCapturedContext
Boolean

キャプチャして現在のコンテキストにマーシャリングするには、true。それ以外の場合は false

戻り値

構成された非同期の破棄可能。

適用対象

ConfigureAwait<T>(IAsyncEnumerable<T>, Boolean)

非同期イテレーションから返されるタスク上での待機がどのように実行されるかを構成します。

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)

型パラメーター

T

反復処理するオブジェクトの型。

パラメーター

source
IAsyncEnumerable<T>

反復処理する列挙可能なソース。

continueOnCapturedContext
Boolean

キャプチャして現在のコンテキストにマーシャリングするには、true。それ以外の場合は false

戻り値

構成された列挙可能。

適用対象