When you want to cancel a subscription to an Observable, you call the ________ method on the subscription object.

  • cancel
  • complete
  • dispose
  • unsubscribe
To cancel a subscription to an Observable and release its resources, you call the unsubscribe method on the subscription object. It's important to unsubscribe from Observables to prevent memory leaks when you're done using them.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *