Does node.js support yield?

后端 未结 10 702
误落风尘
误落风尘 2021-01-31 01:51

Is there any way to get generators into node.js?

I\'m currently faking them with callbacks, but I have to remember to check the response of the callback inside of my gen

10条回答
  •  死守一世寂寞
    2021-01-31 02:48

    You might check out wu.js at http://fitzgen.github.com/wu.js/ It has lots of interesting iterator functions.

提交回复
热议问题