Skip to content

Instantly share code, notes, and snippets.

@felixge
Created December 5, 2009 16:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save felixge/249748 to your computer and use it in GitHub Desktop.
Save felixge/249748 to your computer and use it in GitHub Desktop.
(collection)
('result1', db.query('SELECT 1'))
('result2', db.query('SELECT 2'))
('result3', db.query('SELECT 3'))
.addCallback(function() {
p(results); // == {result1: result1, result2: result2, result3: result}
});
.addErrback(function() {
// If anything goes wrong in this chain, catch it here!
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment