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

Task::ConfigureAwait method

配置对该任务的 await 的行为,以决定上下文捕获方式。

Runtime::CompilerServices::ConfiguredTaskAwaitable System::Threading::Tasks::Task::ConfigureAwait(bool continueOnCapturedContext) const
参数类型描述
continueOnCapturedContextbool是否在捕获的上下文中继续

ReturnValue

Runtime::CompilerServices::ConfiguredTaskAwaitable A configured awaitable

另见