This question asks what I want to know, but the answer doesn't explain it. Could someone share a concrete example that illustrates how to use subscribeActual()
vs. subscribe()
?
I think I may have figured it out. Please comment:
When you write a custom Observable, you do it by extending the base class. But you want users to be able to subscribe()
in the normal way. So the base class just forwards the call to your subscribeActual()
method that does the actual work of subscribing.