ValueTask<TResult>.ConfigureAwait(Boolean) 方法

定义

为此值配置一个 awaiter。

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

参数

continueOnCapturedContext
Boolean

如果尝试将延续任务封送回捕获上下文,则为 true;否则为 false

返回

ConfiguredValueTaskAwaitable<TResult>

配置的 awaiter。

适用于