TaskAsyncEnumerableExtensions.ConfigureAwait 메서드

정의

오버로드

ConfigureAwait(IAsyncDisposable, Boolean)

비동기 일회용에서 반환되는 작업을 대기하는 방법을 구성합니다.Configures how awaits on the tasks returned from an async disposable are performed.

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

비동기 반복에서 반환된 작업을 대기하는 방법을 구성합니다.Configures how awaits on the tasks returned from an async iteration are performed.

ConfigureAwait(IAsyncDisposable, Boolean)

비동기 일회용에서 반환되는 작업을 대기하는 방법을 구성합니다.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

매개 변수

source
IAsyncDisposable

원본 비동기 일회용The source async disposable.

continueOnCapturedContext
Boolean

현재 컨텍스트로 캡처하고 마샬링하면 true이고, 그렇지 않으면 false입니다.true to capture and marshal back to the current context; otherwise, false.

반환

ConfiguredAsyncDisposable

구성된 비동기 일회용The configured async disposable.

적용 대상

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

비동기 반복에서 반환된 작업을 대기하는 방법을 구성합니다.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)

형식 매개 변수

T

반복할 개체의 형식입니다.The type of the objects to iterate.

매개 변수

source
IAsyncEnumerable<T>

반복하는 열거형 원본입니다.The source enumerable to iterate.

continueOnCapturedContext
Boolean

현재 컨텍스트로 캡처하고 마샬링하면 true이고, 그렇지 않으면 false입니다.true to capture and marshal back to the current context; otherwise, false.

반환

ConfiguredCancelableAsyncEnumerable<T>

구성된 열거형입니다.The configured enumerable.

적용 대상