Created
April 2, 2020 11:29
-
-
Save xodhx4/2357ece8f304409cd80634be5cb18360 to your computer and use it in GitHub Desktop.
Markdium-JS 초보가 쓰는 async await 처음부터 이해하기
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
async function printResult() { | |
const data1 = wait callApi1(); // 5초 걸림 | |
const data2 = wait callApi2(); // 3초 걸림 | |
console.log(data1, data2); // 8초 걸림 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment