Publishers.CombineLatest4

์ œ๋„ค๋ฆญ ๊ตฌ์กฐ์ฒด | ๋„ค ๊ฐœ์˜ Publisher๋กœ๋ถ€ํ„ฐ ์ตœ์‹ ์˜ ์š”์†Œ๋ฅผ ์ „๋‹ฌ๋ฐ›๊ณ  ์กฐํ•ฉํ•˜๋Š” Publisher

์ด๋‹ˆ์…œ๋ผ์ด์ €๋Š” ์กฐํ•ฉํ•  ๋„ค ๊ฐœ์˜ Publisher๋ฅผ ๋ฐ›๋Š”๋‹ค.

์กฐํ•ฉํ•  ๋ชจ๋“  Publisher์˜ ์—๋Ÿฌ ํƒ€์ž…์€ ๊ฐ™์•„์•ผ ํ•œ๋‹ค.

๋„ค ๊ฐœ์˜ Publisher์—์„œ ์ตœ์‹ ์˜ ์š”์†Œ๋ฅผ ๋ฐœํ–‰ํ–ˆ์„ ๋•Œ ์ด๋“ค์„ ์กฐํ•ฉํ•˜๋Š” ๋™์ž‘์„ ์›ํ•  ๋•Œ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๋‹ค.

combineLatest ์˜คํผ๋ ˆ์ดํ„ฐ์™€ ๊ด€๋ จ์ด ์žˆ๋‹ค.

Publishers.CombineLatest์™€ ์ทจํ•  ์ˆ˜ ์žˆ๋Š” Publisher์˜ ๊ฐœ์ˆ˜๋งŒ ๋‹ค๋ฅผ ๋ฟ ๋™์ž‘์€ ๊ฐ™๋‹ค.

RxSwift

combineLatest ์˜คํผ๋ ˆ์ดํ„ฐ๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ๊ตฌํ˜„ํ•  ์ˆ˜ ์žˆ๋‹ค.

ReactiveSwift

์„ธ ๊ฐœ ์ด์ƒ์˜ ์ŠคํŠธ๋ฆผ์— ๋Œ€ํ•œ combineLatest ๋™์ž‘์„ ๊ตฌํ–”ํ•˜๊ธฐ ์œ„ํ•œ ์˜คํผ๋ ˆ์ดํ„ฐ๋ฅผ ์ œ๊ณตํ•˜์ง€ ์•Š๋Š”๋‹ค.

์ฐธ๊ณ 

ReactiveX - Operators - CombineLatest

Publishers.CombineLatest

Last updated