{"action":"opened","issue":{"url":"https://api.github.com/repos/ReactiveX/RxJava/issues/4787","repository_url":"https://api.github.com/repos/ReactiveX/RxJava","labels_url":"https://api.github.com/repos/ReactiveX/RxJava/issues/4787/labels{/name}","comments_url":"https://api.github.com/repos/ReactiveX/RxJava/issues/4787/comments","events_url":"https://api.github.com/repos/ReactiveX/RxJava/issues/4787/events","html_url":"https://github.com/ReactiveX/RxJava/issues/4787","id":186259269,"number":4787,"title":"Emitter vs. Observer - what is the difference?","user":{"login":"dkhmelenko","id":4306809,"avatar_url":"https://avatars.githubusercontent.com/u/4306809?v=3","gravatar_id":"","url":"https://api.github.com/users/dkhmelenko","html_url":"https://github.com/dkhmelenko","followers_url":"https://api.github.com/users/dkhmelenko/followers","following_url":"https://api.github.com/users/dkhmelenko/following{/other_user}","gists_url":"https://api.github.com/users/dkhmelenko/gists{/gist_id}","starred_url":"https://api.github.com/users/dkhmelenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dkhmelenko/subscriptions","organizations_url":"https://api.github.com/users/dkhmelenko/orgs","repos_url":"https://api.github.com/users/dkhmelenko/repos","events_url":"https://api.github.com/users/dkhmelenko/events{/privacy}","received_events_url":"https://api.github.com/users/dkhmelenko/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-31T11:16:06Z","updated_at":"2016-10-31T11:16:06Z","closed_at":null,"body":"I discovered that there are two interfaces [Emitter](http://reactivex.io/RxJava/2.x/javadoc/io/reactivex/Emitter.html) and [Observer](http://reactivex.io/RxJava/2.x/javadoc/io/reactivex/Observer.html). Both of them have similar methods. The question is where should each of them be used? \r\nBecause `Observable.create()` receives as a parameter type `Emitter` and `PublishSubject.subscribe()` receives as a parameter type `Observer` (or `Consumer`). What makes impossible to use `Emitter` for subscribing in subject (and that was possible in RxJava 1.x).\r\n\r\nCan somebody clarify or update documentation what is the difference between all of them and when should they be used?"}}
{"actor":{"display_login":"dkhmelenko"}}