ruanyf / es6tutorial

《ECMAScript 6入门》是一本开源的 JavaScript 语言教程,全面介绍 ECMAScript 6 新增的语法特性。

Home Page:http://es6.ruanyifeng.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Generator函数的异步使用似乎有误

RadiumAg opened this issue · comments

阮老师,Generator函数的异步使用似乎有误
image

Node.js 约定 callback 第一个参数是 err 对象。

okok,后来又看了一遍,发现如果result.value是Thunk函数,确实是result.value(next)