Promise
-
동기와비동기_2 (Promise)개발공부/React 2023. 10. 18. 12:07
https://hani-develop-history.tistory.com/42 동기와 비동기_1 오늘은 동기와 비동기에 대해 공부했다. 예전 직장에 다닐 때 성능 개선을 위해 비동기 작업에 대해 공부 했던 적이 있었다. 당시에 자사 프로그램이 동기적으로 작동해서 성능 부분에서 문제가 hani-develop-history.tistory.com 위에 글에 이어서 비동기 공부한 내용을 정리하고자 한다. JS에서 비동기 작업을 도와주는 객체 중 하나인 Promise에 대해 공부해봤다. Promise - 비동기 처리를 도와주는 객체 장점 비동기 처리 시점을 명확하게 표현할 수 있음 연속된 비동기 처리 작업을 추가, 삭제, 수정하기 좋음 비동기 작업 상태 종류 Pending: 대기 Fulfilled: 이행 reso..