Skip to content

Instantly share code, notes, and snippets.

@xodhx4
Created April 2, 2020 11:29
Show Gist options
  • Save xodhx4/2357ece8f304409cd80634be5cb18360 to your computer and use it in GitHub Desktop.
Save xodhx4/2357ece8f304409cd80634be5cb18360 to your computer and use it in GitHub Desktop.
Markdium-JS 초보가 쓰는 async await 처음부터 이해하기
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