RedBus icon indicating copy to clipboard operation
RedBus copied to clipboard

Implement Weak References

Open mxjones opened this issue 6 years ago • 2 comments

mxjones avatar Aug 10 '18 06:08 mxjones

👋 Just came across this project, looks really good!

Can you give a bit more info on what Weak References is about?

tugberkugurlu avatar Jan 04 '19 14:01 tugberkugurlu

Hi @tugberkugurlu - thanks!

I have not looked too much into this just yet but from what I remember on this the idea was that using weak references (for the stored Action) will remove the need to explicitly unsubscribe / help avoid memory leaks caused by holding onto the target, as it the weak reference will not stop the target from being GC'd - Would also need something that dealt with 'Expired' weak references though and cleaned them up. Not 100% sure this is neccessary (or even good) so created this as a placeholder to check it out

mxjones avatar Jan 10 '19 14:01 mxjones