Skip to content

Instantly share code, notes, and snippets.

@kepta

kepta/block23.js Secret

Last active February 21, 2018 15:09
Show Gist options
  • Save kepta/6854de99aa5d457f6c1445dfb3d6da8e to your computer and use it in GitHub Desktop.
Save kepta/6854de99aa5d457f6c1445dfb3d6da8e to your computer and use it in GitHub Desktop.
.then(myVal => {
const promA = foo(myVal);
const promB = anotherPromMake(myVal);
return promA
.then(valA => {
return promB.then(valB => hungryFunc(valA, valB)); // very hungry!
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment