问题描述
寻找指导我何时使用async和等待的好例子。
aync是否等待运行工作线程或主ui线程中的代码?
它是否会产生新线程?
从async await函数可以更新ui而不用begininvoke吗?
如果我写
await f()
await z()
两个函数并行运行?或者首先等待停止执行直到f()完成?
如何阻止异步方法作为结果下一行方法 将在完成第一个异步等待方法后调用。 只需告诉我代码。
请分享知识。谢谢
Looking for good example which guide me when to use async and await.
Does aync await run the code in worker thread or main ui thread?
Does it spawn new thread?
From async await function can i update ui without begininvoke?
If i write
await f()
await z()
both functions run parallel? Or first await stop the execution until f() comple ?
how to block async method as result next line method will call after the completion of first async await method. Just show me with code.
please share knowledge. Thanks
这篇关于何时使用异步等待的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!