Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • Hi Benjamin ,Thank you! 3 questions :) 1. I use bluebird version2.9...so I dont think I can use it "coroutine" (cannot upgrade currenlty...) 2. what about the error handling ? 3. How should I use it in older version of node (es5..) Thank you voted up! Commented Feb 21, 2016 at 13:33
  • 1) Yes you can, 2) Catch when you need to, this is like synchronous code - it propagates on error to the closest .catch (or try/catch inside coroutine). 3) What version? If it's above 0.10 you can --harmony-generators. Commented Feb 21, 2016 at 15:49