Gerard Sans
Aug 23, 2017 · 1 min read

Thanks Hardeep. Let me try to answer them:

  1. 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.
  2. You can either use an error callback or a similar syntax to catch.
  3. 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.
)
    Gerard Sans

    Written by

    Developer Advocate @AWSCloud | Just be AWSome | MC Speaker Trainer Community Leader | Views are my own | @fullstackcon @ReactiveConf @ngcruise @UphillConf UK ☂