Aug 23, 2017 · 1 min read
Thanks Hardeep. Let me try to answer them:
- You can’t cancel it. If you control the source Observable you can either: emit a value, emit an error or emit complete. As a Subscriber, someone that called subscribe on the source Observable, you can process an emitted value, process an error or process a complete event. The only other thing you can do is stop listening the Observable calling unsubscribe but the source Observable will keep going as long as there are other subscribers.
- You can either use an error callback or a similar syntax to catch.
- Whenever you need it. subscribe usually triggers an Observable to run and is similar to a forEach, in the sense of, do this for each emitted value or error or complete.
