const data = await makeRequest("http://example.com/");
console.log(data);
}
9.5
실용적인 예제 더보기
앞서 살펴본 패턴 외에도, 자바스크립트에서
async
/
await
를 활용하는 몇 가지 실용적인 예
시를 알아보겠습니다.
9.5.1
HTTP
요청 보내기
async function makeRequest(url) {
01
옮긴이_ 데코레이터는 현재
ECMAScript
표준의 일부로 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.