Created
December 5, 2009 16:30
-
-
Save felixge/249748 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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