转 Async/Await resources
http://codeclimber.net.nz/archive/2014/12/12/Using-web-api-client-in-synchronous-methods-and-some-good.aspx
Async/Await resources
On the other end I realized I don’t know enough about the async way of coding, and I spent some time reading some good references, mostly by “async-guru” Stephen Cleary.
- Async and Await: introductory and basic article
- HttpClient.GetAsync(…) never returns when using await/async: question on StackOverflow and good answer that explains the problem I experienced above
- Don't Block on Async Code: a better explanation of the same concept answered in the question above
- Best Practices in Asynchronous Programming: a list of best practices in async programming (Avoid Async void, Async all the way, Configure Context)
- Await, and UI, and deadlocks! Oh my!: more about locking and deadlocks
- It's All About the SynchronizationContext: longer and more theoretical article on context and synchronization of threads
用对方法才有效率,做对事情才有效果
“麻烦”是自己“处理”不当的结果
“困难”是自己“学习”不够的反射
“挫折”是自己“努力”不足的代价
“麻烦”是自己“处理”不当的结果
“困难”是自己“学习”不够的反射
“挫折”是自己“努力”不足的代价
浙公网安备 33010602011771号