Skip to content

Document "Emitter" and its differences from Observer #317

Description

@DavidMGross

Activity

  1. RobLewis commented on Aug 13, 2018

    @RobLewis

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions