Return Subscriptions from the Subscribe Function in RxJs

Share this video with your friends

Send Tweet

So far, when writing these subscribe functions, we haven't returned anything. It is possible return an unsubscribe function from a subscribe function. In this lesson we will see how to allow observers to subscribe and unsubscribe from an Observable.