Dagger 2 and releasable references

107 views
Skip to first unread message

Ron Shapiro

unread,
Mar 26, 2018, 1:40:23 PM3/26/18
to Dagger Discuss

Almost 2 years ago, Dagger 2 added the dagger.releasablereferences package (@CanReleaseReferencesReleasableReferenceManager, etc) to give users a mechanism to have regular scoping considerations (only use this one instance anywhere in my component) but also allow for the objects to be garbage collected under memory pressure if they weren't being referred to.

As far as we can tell (from internal code searches, public github projects, github issues, and ASG) there doesn't appear to be much, if any, usage of the feature, so we're considering getting rid of it to burn down some technical complexity.

Before we do so, we wanted to see - is anyone planning on beginning to use the feature, or perhaps didn't know about the feature but upon reading this message thinks it could be useful? If so, please reach out to us to discuss.

If we don't hear of anyone, we'll plan on removing the feature sometime soon. Given that it is marked @Beta we can remove it, but we'd like to understand any usages that exist to see if the feature was ever used appropriately.


Thanks!

- Ron, on behalf of the Dagger team

Reply all
Reply to author
Forward
0 new messages