AutoCloseableInstanceTracker

constructor(unbindOnClose: Boolean = UNBIND_ON_CLOSE_DEFAULT, setCreator: () -> MutableSet<T>? = null)

Parameters

unbindOnClose

Whether to invoke unbind automatically when close is invoked. This requires less manual coding resource management, at the expense that deadlocks may occur.

setCreator

Creator for the Set used to track instances.