System::Threading::Tasks::Task::ConfigureAwait 方法

Task::ConfigureAwait method

配置对该任务的 await 在上下文捕获方面的行为。

Runtime::CompilerServices::ConfiguredTaskAwaitable System::Threading::Tasks::Task::ConfigureAwait(bool continueOnCapturedContext) const
ParameterType描述
continueOnCapturedContextbool是否在捕获的上下文上继续执行

ReturnValue

Runtime::CompilerServices::ConfiguredTaskAwaitable A configured awaitable

另见