会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
AhuntSun
Talk is cheap, Show me the code.
博客园
首页
新随笔
联系
订阅
管理
2020年8月30日
async与await输出顺序的思考
摘要: async async其实就是对Generator的封装,只不过async可以自动执行next()。 async必须等到里面所有的await执行完,async才开始return,返回的Promise状态才改变。除非遇到return和错误。 async默认返回一个Promise,如果return不是一
阅读全文
posted @ 2020-08-30 00:54 AhuntSun
阅读(1239)
评论(0)
推荐(0)
公告