💪Difference between Observables and Promises😐
observables Promises
========================================================
1.They handle multiple asynchronous 1. They deal with asynchronous event at a time
events over a period of time
2.They are lazy . they are not 2. They are not lazy. they are executed immediately
executed until we after creation
was the subscribe() method
3. Cancellable subscriptions 3.Promisses are not cancellable
using the unsubscribe() method.
4. They deliver errors to the 4. They push the errors to child promisses
subscribers
5.Observables provide operation 5.They do not provide operations.
such as reduce , filter, retry,
and retry
Comments
Post a Comment