-
Notifications
You must be signed in to change notification settings - Fork 778
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2019-10-29:谈一谈EventBus的原理? #176
Comments
观察者被观察者 |
EventBus1、 register方法将对象实例用软引用包裹,保存到一个map缓存集合中 |
直接说下eventbus3吧 注册的时候 会把信息填入 1,2 两个map, 而订阅信息是怎么获取的呢? 2这个map适用于反注册的, 通过订阅者找到他的事件,然后移除 另外eventbus支持 几种线程模式 posting main ordermain background asyc 这里说下有序主线程 就是在 一个 被注解方法中发送另外一个eventbus |
register注册一个订阅者 事件发送逻辑 取消逻辑 |
The text was updated successfully, but these errors were encountered: