Releases: azheng95/EventFlow
Releases · azheng95/EventFlow
0.10.0
Compare
Sorry, something went wrong.
No results found
使用Channel + repeatOnLifecycle,替代 LiveData,消除 postValue 合并丢事件的风险。
需要添加lifecycle-runtime-ktx库。
0.0.7
Compare
Sorry, something went wrong.
No results found
FlowScope 协程作用域:无参默认 Dispatchers.Default;生命周期版默认 Dispatchers.Main.immediate
0.0.6
Compare
Sorry, something went wrong.
No results found
支持全局默认 Bus 和多个独立 Bus 实例,事件流完全隔离、互不影响
0.0.5
Compare
Sorry, something went wrong.
No results found
默认配置修改策略为BufferOverflow.DROP_OLDEST,适合大多数场景:IM聊天消息、订单状态、支付通知、数据同步等,特点:宁可变慢,不丢失任何事件。
0.0.4
Compare
Sorry, something went wrong.
No results found
LiveData 复用,不再每次 collect 创建新 LiveData,避免内存泄漏。
移除生命周期观察者,协程取消时调用 removeObserver()。
队列 + 计数器双重保障,ConcurrentLinkedQueue + AtomicInteger 确保极端情况下不丢事件。
添加一些示例。
0.0.3
Compare
Sorry, something went wrong.
No results found
0.0.2
Compare
Sorry, something went wrong.
No results found
修复onlyReceiveLatest接收问题,确保代码按预期执行
0.0.1
Compare
Sorry, something went wrong.
No results found