5 ms·
Similarly, `function(err, result)` is nice because HTTP handlers often use `function(req, res)`, where the res is a response object. Fumbling over this kind of
by zachrose 12y ago
Similarly, `function(err, result)` is nice because HTTP handlers often use `function(req, res)`, where the res is a response object. Fumbling over this kind of thing while nesting async calls in HTTP handlers is a minor annoyance.
- notduncansmith 12y agoYou should definitely be using promises. Q is a good library. Don't worry about performance, I can say with extreme confidence that promise execution speed is not your bottleneck. In that 0.01% of times where it is, use Bluebird.
- zachrose 12y agoExcellent call.