ConfiguredCancelableAsyncEnumerable<T>.ConfigureAwait(Boolean) 方法

定义

配置如何执行从异步迭代返回的任务的等待。

public:
 System::Runtime::CompilerServices::ConfiguredCancelableAsyncEnumerable<T> ConfigureAwait(bool continueOnCapturedContext);
public System.Runtime.CompilerServices.ConfiguredCancelableAsyncEnumerable<T> ConfigureAwait (bool continueOnCapturedContext);
member this.ConfigureAwait : bool -> System.Runtime.CompilerServices.ConfiguredCancelableAsyncEnumerable<'T>
Public Function ConfigureAwait (continueOnCapturedContext As Boolean) As ConfiguredCancelableAsyncEnumerable(Of T)

参数

continueOnCapturedContext
Boolean

若要捕获并封装回当前上下文,则为 true;否则为 false

返回

配置的可枚举项。

注解

这将替换以前为此迭代设置 ConfigureAwait(Boolean) 的任何值。

适用于