Details
-
Enhancement
-
Resolution: Fixed
-
P3
-
None
-
repo-panama
Description
Sometimes it's handy to delegate cleanup to the GC - especially in the case of long-lived segments. It is currently hard to do, as a client cannot register a segment onto a cleaner directly: that's because the client would need to pass a closure calling close() on the segment being register - but that means that the closure would keep the segment reachable.
An API should add this capability.
An API should add this capability.