由网友(半醉半醒半痴呆)分享简介:我一直在处理了不少与异步计谋的最近(读每一个可能的文章,包括斯蒂芬和乔恩的最后2章),但我是来的结论,我不知道这是否是100%正确。 - 因此,我的问题I've been dealing quite a lot with async await lately (read every possible article...
我一直在处理了不少与异步计谋的最近(读每一个可能的文章,包括斯蒂芬和乔恩的最后2章),但我是来的结论,我不知道这是否是100%正确。 - 因此,我的问题
I've been dealing quite a lot with async await lately (read every possible article including Stephen's and Jon's last 2 chapters) , but I have come to conclusion and I don't know if it's 100% correct. - hence my question .
由于异步
只允许字等待为present,我会离开异步
一边。
Since async
only allows the word await to be present , i'll leave async
aside.
AFAIU,等待是所有关于延续。 ,而不是写功能(continuational)code,写同步code。 (我喜欢把它的 callback'able 的code)
AFAIU , await is all about continuation . instead of writing functional (continuational) code , write synchronous code. ( i like to refer it as callback'able code)
所以,当编译器达到等待
- 它将该code至2节并注册要执行的第二部分,第一部分完成后(
相关推荐
最新文章