waitfor
waitfor copied to clipboard
Sequential programming for node.js, end of callback hell / pyramid of doom
gyp info it worked if it ends with ok gyp verb cli [ 'nodejs', '/usr/bin/node-gyp', 'rebuild', '--release' ] gyp info using [email protected] gyp info using [email protected] | linux | x64...
Nested calls of `wait.for` currently cause an error ("Callback for function ... called twice") and confusing behavior. Example ([gist](https://gist.github.com/yelworc/da3a563ea73e54eb6b2c#file-nested-waitfor-js)): ``` javascript function g(callback) { setImmediate(function () { callback(null, 'G'); });...