ybogdanov / node-sync

Write simple and readable synchronous code in nodejs using fibers
MIT License
492 stars 70 forks source link

Why can't the callback be more then one parameter long? #18

Closed ghost closed 12 years ago

ghost commented 12 years ago

I started codding my application using Sync and noticed after an update that I can't use multiple callbacks like I was doing before. Out of curiosity, I was wondering why such changes where adapted? Is it because of performance?

"Since v0.2.1 Sync does not support functions returning more than one value to the callback."

Thank you for the reply. I am a big user of this module, I like the simplicity it provides. Good job.

ybogdanov commented 12 years ago

Hi, I've checked it again and it seems that node v0.8.0 has newer v8 and there's no performance penalty anymore. So I brought back multiple callback parameters support. You can reinstall node-sync and enjoy :)

d7b99c42fa9ba0f2d9613a6145d850b383bd5ff8