Skip to content

Instantly share code, notes, and snippets.

@lwillmeth
Created April 15, 2019 22:09
Show Gist options
  • Save lwillmeth/1cfed97dd284db3e8aa654115a75b11e to your computer and use it in GitHub Desktop.
Save lwillmeth/1cfed97dd284db3e8aa654115a75b11e to your computer and use it in GitHub Desktop.
console.log('A');
const FetchKeys = new Promise((resolve, reject) => {
setTimeout(function () {
resolve('Hello world!');
}, 1000);
});
Promise.all([FetchKeys])
.then(res => {
console.log('C: ', res);
});
FetchKeys
.then(res => {
console.log('D:', res);
});
console.log('E');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment