Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document "Emitter" and its differences from Observer #317

Open
DavidMGross opened this issue Nov 7, 2016 · 1 comment
Open

Document "Emitter" and its differences from Observer #317

DavidMGross opened this issue Nov 7, 2016 · 1 comment
Labels

Comments

@DavidMGross
Copy link
Collaborator

See e.g. ReactiveX/RxJava#4787

@RobLewis
Copy link

I too would very much appreciate a clearer explanation of Emitters. I'm a fairly experienced RxJava programmer (and native speaker of English) but TBH I can't understand basically any of this:

The Emitter is an abstraction over Observer that handles cancellation for you. In 1.x it extends Observer because that interface is just 3 methods. In 2.x the Observer has a 4th method, onSubscribe which you should not interact with but can't hide it if 2.x Emitter extended Observer. The sole purpose of Emitter is to let you interact with the downstream in a safe manner from within Observable.create.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants