DisposableContainer
An implementation of DisposableRegistry that can be subclassed or used as a delegate. Allows to store and dispose of multiple Disposable instances.
See also
Properties
Functions
Remove this Disposable from the DisposableRegistry if it is already registered.
Register this Disposable with the DisposableRegistry.
Removes disposable from this registry.
Removes all disposables from the registry without disposing them.
Calls dispose on each registered Disposable. Might throw an exception if the assets were already disposed. To prevent that and clear the registry, use deregisterAll.
Allows to gracefully dispose a resource implementing Disposable interface. Will silently ignore nulls and exceptions (except for JVM internal Errors, which should not be caught anyway).
Registers disposable with this registry.