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

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.

 

posted @ 2021-01-12 00:08  悠哉大斌  阅读(82)  评论(0编辑  收藏  举报