Question - What is Observers and Subscriptions?
Answer -
Observers and Subscriptions are related to the concept of Observable.
Observers:
Observer is a set of callbacks that know how to listen to the values of the Observable.
- Observers are also referred to as listeners (or consumers)
- Observers may listen or subscribe to the data being observed.
Subscription:
Subscription is an observable execution
- Subscriptions are objects returned when an Observable is subscribed.
- Subscription is useful mainly to cancel the execution