Created
August 18, 2016 06:50
-
-
Save derzunov/0872f5a6fe8b98591aafda34c418f57b 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
asyncFunc1().then(function( data ) { | |
console.log( data.message ); | |
return asyncFunc2(); | |
}).then(function( data_2 ) { | |
console.log( data_2.message ); | |
return asyncFunc3(); | |
}).then(function( data_3 ) { | |
console.log( data_3.message ); | |
// Тут делаем наши дела после того, как все функции отработали | |
console.log( "Всё!" ); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment