CheckableAutoCloseable

An AutoCloseable that can report whether it has been closed.

Subclasses must implement the closed property to indicate whether the resource has been closed. This may be done with CloseOnce to ensure idempotency.

As this is Rive specific, close may also throw RiveShutdownException on failure.

Inheritors

Properties

Link copied to clipboard
abstract val closed: Boolean

Whether this resource has been closed.

Functions

Link copied to clipboard
abstract override fun close()

Closes this resource, releasing any underlying resources.