Skip to Content
자바스크립트 + 리액트 디자인 패턴
book

자바스크립트 + 리액트 디자인 패턴

by 애디 오스마니(Addy Osmani), 윤창식
August 2024
Beginner to intermediate
384 pages
7h 38m
Korean
Hanbit Media, Inc.
Content preview from 자바스크립트 + 리액트 디자인 패턴
204
자바스크립트 + 리액트 디자인 패턴
비동기 자바스크립트 프로그래밍은 브라우저가 이벤트에 응답하여 다른 코드를 실행하는 동
안, 백그라운드에서 오랜 시간이 걸리는 작업을 수행하게 해줍니다. 비동기 프로그래밍은 자
바스크립트에서는 비교적 최근에 도입되었으며, 이 책의 초판을 출간했을 때 (
2012
년
7
월)
에는 비동기 프로그래밍을 지원하는 구문이 존재하지 않았습니다
.
프로미스
Promise
, 비동기
Async
/
await
등의 자바스크립트 개념은 메인 스레드를 차단하지 않으면서
도 코드를 깔끔하고 읽기 쉽게 만들어줍니다.
async
함수는
2016
년에
ES7
의 일부로 도입되
었으며 현재 모든 브라우저에서 지원됩니다. 이러한 기능을 활용해 애플리케이션 흐름을 효
율적으로 구성하는 몇 가지 패턴에 대해 살펴보겠습니다.
9.1
비동기 프로그래밍
자바스크립트에서 동기 코드는 블로킹
blocking
방식으로 실행됩니다. 이는 코드가 순서대로 한
번에 한 문장씩 실행됨을 의미합니다. 코드에서 다음 줄의 문장은 현재 문장의 실행이 완료
된 후에만 실행될 수 있습니다. 동기 함수를 호출하면, 호출자에게 결과를 반환하기 전에 함
수 내부의 코드가 처음부터 끝까지 한 줄씩 실행될 것입니다.
반면에 비동기 코드는 논블로킹
nonblocking
방식으로 실행됩니다. 즉, 자바스크립트 엔진은 ...
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.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

실전 시계열 분석: 통계와 머신러닝을 활용한 예측 기법

실전 시계열 분석: 통계와 머신러닝을 활용한 예측 기법

박찬성, 에일린 닐슨
클라우드 엔지니어를 위한 97가지 조언

클라우드 엔지니어를 위한 97가지 조언

Emily Freeman, Nathen Harvey, 정기훈(Jung Ki Hun)

Publisher Resources

ISBN: 9791169212571