-
-
Save joshperry/174fcc39006d324ff17e 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
var Promise = require('bluebird'); | |
var someAsyncFunction = Promise.promisify(someFunction); | |
function one() { | |
return someAsyncFunction(params) | |
.then(function one(results) { | |
console.log('one'); | |
}); | |
} | |
one().then(function two() { | |
console.log('two'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment