ValueTask.ConfigureAwait(Boolean) 方法

定义

为此值配置一个 awaiter。

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

参数

continueOnCapturedContext
Boolean

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

返回

配置的 awaiter。

适用于