I´ve been using quite often EventBus from greenrobot
https://github.com/greenrobot/EventBus
But I´ve just realised that Guava has its own EventBus
com.google.common.eventbus.EventBus
Does someone know if there are big differences?
I´ve been using quite often EventBus from greenrobot
https://github.com/greenrobot/EventBus
But I´ve just realised that Guava has its own EventBus
com.google.common.eventbus.EventBus
Does someone know if there are big differences?
Both are excellent quality library.
Here is a comparison (from greenrobot developpers point of view) between greenrobot EventBus
and Otto
(a fork from Guava
specialized for android).
I personnaly like EventBus
because it support delivery in background threads
EventBus can do some Android specific tricks, which other implementations don't support. First, there is main thread support to conveniently switch threads.Second its performance was optimized especially for Android. For example, with EventBus 3 you get annotations without the performance downgrade you would have with Otto or Guava.
Otto is deprecated in favor of RxJava and RxAndroid.
RxJava 1.x is end-of-life as of March 31, 2018.
Use RxJava 2.x, I guess.
© 2022 - 2024 — McMap. All rights reserved.