Making serialization of data/event streams and asynchronous tasks more convenient
- Asynchrony is simplified with declarative programming: no more nested callbacks, delegates, notifications, KVOs
- Safe multi-threading with .observerOn(scheduler)
- Clean code and release pressures in controller layers
- Only accepts events that occur after subscribing to him
- Accepts event after subscribing to him, as well as receive the event that was send before him(buffersize: the number of previous events)
- Accepts event after subscribing to him, as well as the last event
- Wrapped BehaviorSubject
- Use
.asObservable
to unbox
- Use
- Modify the value of the object when issuing an event
- Map
- FlatMap
- FlatMapLatest: only care about changes in the value of the lastest subsription
- Dispose (MRC)
- Dispose Bags (ARC)
Credits from: This article