<aside> 📌 목차
</aside>
The core idea behind reactive programming is to model asynchronous event flow over time.
리액티브 프로그램의 핵심 아이디어는 시간의 흐름에 따른 비동기적인 이벤트 플로우를 시퀀스로 모델링 한것
delay 를 통해 시간을 미룰 수 있다collect 를 사용하면 댐처럼 시간의 흐름에 따른 값 덩어리를 모아서 방출할 수 있다.debounce 와 throttle 을 사용하면 타임 윈도우 사이에 방출된 이벤트들 중 골라서 방출할 수 있다.timeout 을 통해 구현할 수 있다.meaureinterval 을 통해 가능하다.<aside>
📌 Note
: This particular timer is a Combine extension on the Foundation Timer
class. It takes a RunLoop and RunLoop.Mode, and not a DispatchQueue
as you may expect. You’ll learn all about timers in Chapter 11, “Timers.” Also, timers are part of a class of publishers that are connectable. This means they need to be connected to before they start emitting values. You use autoconnect()
which immediately connects upon the first subscription.
</aside>