question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Do you use ReleasableReferences?

See original GitHub issue

Almost 2 years ago, we added the dagger.releasablereferences package (@CanReleaseReferences, ReleasableReferenceManager, 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.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:7
  • Comments:14

github_iconTop GitHub Comments

2reactions
TWiStErRobcommented, Mar 27, 2018

Downvoted to signify not using, never heard about it. (@ronshapiro maybe clarify which reaction to use for what response)

1reaction
bmeikecommented, Jun 21, 2018

I find this annotation useful. It is, in fact, what I thought @Reuseable did. I only found this when I got evidence that @Reuseable was not doing what I expected (it creates un-GCable singletons). While I take @TWiStErRob point, Dagger is the factory from which I get my instances. It seems at least plausible, to me, to keep this control in that factory.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ReleasableReferenceManager - Dagger
The releasable references feature is deprecated and scheduled for removal in July 2018. If you use it or are planning to add usages,...
Read more >
Index - javadoc.io
The releasable references feature is deprecated and scheduled for removal in July 2018. If you use it or are planning to add usages,...
Read more >
Dagger warning in Android Studio with Proguard even though ...
My project is no longer compiling with Proguard optimisations. As you will see below it mentions dagger but I have not been using...
Read more >
Uses of Interface dagger.releasablereferences ... - Javadox
The releasable references feature is deprecated and scheduled for removal in July 2018. If you use it or are planning to add usages,...
Read more >
dagger.releasablereferences.ForReleasableReferences ...
Copyright (C) 2016 The Dagger Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found