Skip to content

Instantly share code, notes, and snippets.

@derzunov
Last active August 18, 2016 12:33
Show Gist options
  • Save derzunov/d0d9d56858b41846c1ff50cbbd34ddf5 to your computer and use it in GitHub Desktop.
Save derzunov/d0d9d56858b41846c1ff50cbbd34ddf5 to your computer and use it in GitHub Desktop.
function asyncFunc1 () {
return new Promise(function(resolve, reject) {
setTimeout( () => resolve({message: "First done!"}), 300 );
});
};
function asyncFunc2 () {
return new Promise(function(resolve, reject) {
setTimeout( () => resolve({message: "Second done!"}), 200 );
});
};
function asyncFunc3 () {
return new Promise(function(resolve, reject) {
setTimeout( () => resolve({message: "Third done!"}), 100 );
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment