Skip to content

Instantly share code, notes, and snippets.

@ktilcu
Created January 5, 2018 14:15
Show Gist options
  • Select an option

  • Save ktilcu/0a23ddfe831b0c7e626bc5dd5fba1d6b to your computer and use it in GitHub Desktop.

Select an option

Save ktilcu/0a23ddfe831b0c7e626bc5dd5fba1d6b to your computer and use it in GitHub Desktop.
const Promise = require('bluebird')
const makeRequest = () => {
const p1 = promise1()
const p2 = p1.then(promise2)
return Promise
.join(p1,p2)
.then(promise3)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment