Automatic binding+disposal of RxJava streams. AutoDispose is an RxJava 2+ tool for automatically binding the execution of RxJava streams to a provided scope via disposal/cancellation. Often (especially in mobile applications), Rx subscriptions need to stop in response to some event (for instance, when Activity#onStop() executes in an Android app). In order to support this common scenario in RxJava 2, we built AutoDispose.

Features

  • Completable (as a scope)
  • Modeled after RxJava’s plugins
  • Customize the behavior of AutoDispose
  • Documentation available
  • Examples available
  • Customize how main thread checks work

Project Samples

Project Activity

See All Activity >