JeremyLiao / LiveEventBus

:mailbox_with_mail:EventBus for Android,消息总线,基于LiveData,具有生命周期感知能力,支持Sticky,支持AndroidX,支持跨进程,支持跨APP
Apache License 2.0
3.87k stars 529 forks source link

作者大大有没有考虑过使用flow替代liveData #140

Closed ld2006203 closed 3 years ago

ld2006203 commented 3 years ago

目前项目中用到了很多LiveData,发的多丢的多,而且由于LiveData Post也是在主线程中,所以还是有一定性能损耗的,且livedata不支持背压,作者大大有没有考虑过使用flow替代Livedata

JeremyLiao commented 3 years ago

貌似有一个基于flow的实现了:https://tech.bytedance.net/articles/6986469059034349598

ld2006203 commented 3 years ago

大佬这是你们内网的吧,好像无法访问啊

JeremyLiao commented 3 years ago

大佬这是你们内网的吧,好像无法访问啊

sorry,没注意:)

JeremyLiao commented 3 years ago

https://juejin.cn/post/6985093305470025764 https://github.com/biubiuqiu0/flow-event-bus

ld2006203 commented 3 years ago

谢谢大佬