# uber/AutoDispose

Automatic binding+disposal of RxJava streams.

Repository: https://github.com/uber/AutoDispose
Canonical: https://ross.abutalabs.com/products/autodispose
Homepage: https://uber.github.io/AutoDispose/
Language: Java
License: Apache-2.0
License Family: permissive
Topics: uber, autodispose, rxjava, reactive-extensions, reactive-streams, rxandroid, android, kotlin, lifecycle
Last push: 2026-05-14T23:22:07+00:00

## Health v2 (maintenance only)
Score: 60/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 82, release rhythm 8, longevity 100
- inputs: {"age_days": 3541, "days_push": 111, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3344, forks 228 (observed 2026-08-28T04:07:56.986890+00:00)

## What it is
AutoDispose is an RxJava 2+ library from Uber that automatically binds the execution of RxJava streams to a provided scope via disposal/cancellation. It prevents common bugs like UI updates after an Android Activity has been torn down by unsubscribing streams when the scope ends.

## Use cases
- prevent rxjava subscription leaks in android apps
- automatically dispose observables when activity stops
- bind reactive streams to android lifecycle
- avoid updating ui after screen is destroyed
- cancel network requests when view is torn down

## When to choose
- you use RxJava 2+ in Android apps and need lifecycle-aware disposal
- you want to avoid manual subscription management and memory leaks
- you need scope-based cancellation tied to events like Activity#onStop

## When to avoid
- you use Kotlin coroutines/Flow instead of RxJava
- your project doesn't use reactive streams
- you need lifecycle handling for non-RxJava async frameworks

## Facets
- artifact type: library
- maturity: stable
- function: middleware, developer-tools
- domain: mobile-development, android-tools
- platform: jvm
- tags: rxjava, lifecycle, memory-leaks, reactive-streams, disposal, reactive-extensions, android

## Member repositories
- uber/AutoDispose (main) score 60

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:56.986890+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:41:02.561358+00:00, confidence not recorded.
  - readme: https://github.com/uber/AutoDispose (fetched 2026-08-28T04:07:56.986890+00:00, sha 9cc35710a101)
  - homepage: https://uber.github.io/AutoDispose/ (fetched 2026-08-29T09:34:11.105951+00:00, sha 92ba5edf70ce)
- Data as of 2026-08-30T08:39:29.467469+00:00.
