System::Threading::Tasks::ValueTask::GetAwaiter 方法

ValueTask::GetAwaiter method

获取此任务的 awaiter,以支持 await 表达式。

Runtime::CompilerServices::ValueTaskAwaiter System::Threading::Tasks::ValueTask::GetAwaiter() const

ReturnValue

ValueTaskAwaiter 此任务的 awaiter 实例。

备注

此方法使能够使用 Await 方法与 ValueTask 一起使用。

另见