摘要: 1.async 函数就是 Generator 函数的语法糖。 例如: async 函数的优点 async 函数对 Generator 函数的改进,体现在以下三点。 (1)内置执行器。 Generator 函数的执行必须靠执行器,所以才有了 co 函数库,而 async 函数自带执行器。也就是说,as 阅读全文
posted @ 2019-01-17 16:09 又回到了起点 阅读(427) 评论(0) 推荐(0) 编辑