O'Reilly logo

Reactive Android Programming by Tadas Subonis

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Completable, Single, and Maybe types

Besides the types of Observable and Flowable, there are three more types that RxJava provides:

  • Completable: This represents an action without a result that will be completed in the future
  • Single: This is just like Observable (or Flowable) that returns a single item instead of a stream
  • Maybe: This stands for an action that can complete (or fail) without returning any value (such as Completable) but can also return an item such as Single

However, all these are used quite rarely. Let's take a quick look at the examples.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required