greenrobot / EventBus

Event bus for Android and Java that simplifies communication between Activities, Fragments, Threads, Services, etc. Less code, better quality.
http://greenrobot.org/eventbus/
Apache License 2.0
24.68k stars 4.66k forks source link

add the ability of registerWeak, which could help reduce memory leak #635

Open ice871117 opened 4 years ago

ice871117 commented 4 years ago

we have been using this registerWeak function for a while and it runs steady, also reduce the chance to cause memory leak on android. sometimes it is really hard to find a proper place to call unregister. Empty reference will be removed when new registration happens

GregoryConrad commented 4 years ago

@greenrobot-team Any update on this? This would be an amazing feature to have and the idea was brought up all the way back in January 2014: #57

greenrobot-team commented 4 years ago

No update. But as a general hint, you should not expect such fundamental (read potentially breaking) changes making it into the library.