BoundResource

Bound Resource

Describes a single "bound resource," which is held within the context of a LifecycleBoundResources instance; such resources have a weak reference back to their owner, and are automatically closed when the owner is closed.

Bound resources are considered disposable types.

Inheritors

Types

Link copied to clipboard

Describes an AutoCloseable resource as a BoundResource.

Link copied to clipboard

Describes a Closeable resource as a BoundResource.

Link copied to clipboard
object Companion

Companion utilities for creating BoundResource instances.

Functions

Link copied to clipboard
abstract override fun close()