luciotato / waitfor

Sequential programming for node.js, end of callback hell / pyramid of doom
MIT License
531 stars 29 forks source link

fiber.run exiting #31

Closed blakemcbride closed 9 years ago

blakemcbride commented 9 years ago

I don't understand why this would happen:

var getSync = function(req, res) {
    var exists = wait.forMethod(fs, 'exists', 'public');
    console.log(exists);
    res.send('return value');
    };

router.get('/:type/:idd', function(req, res) {
    wait.launchFiber(getSync, req, res);
});

I get:

/home/blake/ComponentServer/node_modules/wait.for/waitfor.js:38
                                fiber.run();   
                                      ^
true

This kills the app.