Closed ld2006203 closed 3 years ago
目前项目中用到了很多LiveData,发的多丢的多,而且由于LiveData Post也是在主线程中,所以还是有一定性能损耗的,且livedata不支持背压,作者大大有没有考虑过使用flow替代Livedata
貌似有一个基于flow的实现了:https://tech.bytedance.net/articles/6986469059034349598
大佬这是你们内网的吧,好像无法访问啊
sorry,没注意:)
https://juejin.cn/post/6985093305470025764 https://github.com/biubiuqiu0/flow-event-bus
谢谢大佬
目前项目中用到了很多LiveData,发的多丢的多,而且由于LiveData Post也是在主线程中,所以还是有一定性能损耗的,且livedata不支持背压,作者大大有没有考虑过使用flow替代Livedata