阅读背景:

使用带有promise的co库而不是thunk有什么好处?

来源:互联网 

So I've been reading about the usage of the co library, and the general design pattern I've seen in most blog posts is wrapping functions that have callbacks in thunks. Then using an es6 generator to yield those thunks to the




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: