๐Ÿ“šย Reference


๐Ÿ“œย Chapter


Promise.all()

Promise.allSettled()

Promise.race()

AggregateError

Promise.any()


์ž‘๋™ ๋ฐฉ์‹


์กฐ๊ฑด ๋ฐ˜ํ™˜๋˜๋Š” Promise์˜ ์ƒํƒœ ๊ฒฐ๊ณผ ๊ฐ’
์„ฑ๊ณต (Fulfillment) ์ž…๋ ฅ๋œ Promise ์ค‘ ๊ฐ€์žฅ ๋จผ์ € ์„ฑ๊ณตํ•˜๋Š” Promise๊ฐ€ ๋‚˜์˜ค๋ฉด ์ฆ‰์‹œ resolve๋œ๋‹ค. ๊ฐ€์žฅ ๋จผ์ € ์„ฑ๊ณตํ•œ Promise์˜ ๊ฒฐ๊ณผ ๊ฐ’(fulfillment value)
์‹คํŒจ (Rejection) ์ž…๋ ฅ๋œ ๋ชจ๋“  Promise๊ฐ€ ์‹คํŒจ(reject)ํ•  ๊ฒฝ์šฐ์—๋งŒ reject๋œ๋‹ค. ๋ชจ๋“  ์‹คํŒจ ์ด์œ ๋ฅผ ๋‹ด๊ณ  ์žˆ๋Š” ํŠน์ˆ˜ํ•œ ์—๋Ÿฌ์ธ AggregateError ๊ฐ์ฒด

ํŠน์ง•