AutoCloseableInstanceTracker
abstract class AutoCloseableInstanceTracker<T>(val unbindOnClose: Boolean = UNBIND_ON_CLOSE_DEFAULT, setCreator: () -> MutableSet<T>? = null) : InstanceTracker<T> , AutoCloseable
InstanceTracker which also implements the AutoCloseable interface.
This implementation is best suited for InstanceTracker which also requires the use of coroutines. Note that unbind must be invoked manually before close if unbindOnClose is set to false
(which is the default).
Parameters
Constructors
Link copied to clipboard
constructor(unbindOnClose: Boolean = UNBIND_ON_CLOSE_DEFAULT, setCreator: () -> MutableSet<T>? = null)