ybogdanov / node-sync

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

How to address non-uniform callback #33

Closed shellscape closed 10 years ago

shellscape commented 10 years ago

I'd love to see some information added to the readme on how to address a non-uniform callback. For example, the request.execute method of the mssql module - https://github.com/patriksimek/node-mssql#request

The callback has three parameters: callback(err, recordsets, returnValue), and sync seems to be having an issue with returning the values passed there. At present, the method just hangs (and I've verified everything the method needs is present and accounted for).

ybogdanov commented 10 years ago

Added to readme 9aea803752f53807fb88245785d573317bbfe896 However, I think you have some another problem, sync should work regardless of how you read the value. If it's still relevant for you, please provide the code example of how you use it.