Completable

An instance of the Completable class doesn't emit a value at all. It can be used to notify the user of task completion. In addition, it can be used when we delete an item from a database, for instance.

The following example code shows a case of deleting an item from a database:

Completable.fromAction { Database.delete() }
.test()
.assertComplete()

The test method returns an instance of the TestObservable class.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.143.22.23