Last active
August 18, 2016 12:33
-
-
Save derzunov/d0d9d56858b41846c1ff50cbbd34ddf5 to your computer and use it in GitHub Desktop.
This file contains 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
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