Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

“koa中间件实现原理”一章中co的执行方式有问题 #4

Open
zhanfang opened this issue Mar 12, 2016 · 0 comments
Open

Comments

@zhanfang
Copy link

koa中间件实现原理中

return co(function *(){
       ......
})();

代码有问题,改为如下

return co(function *(){
       ......
});

co的执行方式直接为co(gen);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant