首页 > 其他 > 详细

What is the difference between await Task<T> and Task<T>.Result?

时间:2021-01-12 09:47:50      阅读:39      评论:0      收藏:0      [点我收藏+]

https://stackoverflow.com/questions/27464287/what-is-the-difference-between-await-taskt-and-taskt-result

Generally, yes. await task; will "yield" the current thread. task.Result will block the current thread. await is an asynchronous wait; Result is a blocking wait.

 

What is the difference between await Task<T> and Task<T>.Result?

原文:https://www.cnblogs.com/imust2008/p/14265068.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!