The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

Returning subscriptions from the subscribe function

Returning subscriptions from the subscribe function

3:14
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.
Watch this lesson now
Avatar
egghead.io

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.

HEY, QUICK QUESTION!
Joel's Head
Why are we asking?