Add support for registering a segment with a Cleaner

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P3
    • None
    • Affects Version/s: repo-panama
    • Component/s: tools

      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.

            Assignee:
            Maurizio Cimadamore
            Reporter:
            Maurizio Cimadamore
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: