uber / AutoDispose

Automatic binding+disposal of RxJava streams.

Home Page:https://uber.github.io/AutoDispose/

Repository from Github https://github.comuber/AutoDisposeRepository from Github https://github.comuber/AutoDispose

Help ,Why the main thread is required ?

HailouWang opened this issue · comments

Library version:

Repro steps or stacktrace:

Hi,Dear:

here,ask for a help :

file lie 83,Why the main thread is required ? thx!

PS.
file:android/autodispose-androidx-lifecycle/src/main/java/autodispose2/androidx/lifecycle/LifecycleEventsObservable.java

image

Because lifecycle observers should only be subscribed to on the main thread

Because lifecycle observers should only be subscribed to on the main thread

that is why confused me. I got a demo,it works!

image

That's not thread-safe