标签: .net task-parallel-library
我有Task。它会创建TaskCompletionSource和Wait s来设置其Result。
Task
TaskCompletionSource
Wait
Result
致电myTaskCompletionSource.Wait():
myTaskCompletionSource.Wait()
答案 0 :(得分:2)
await
await myTaskCompletionSource;