Disposable

interface Disposable

Represents a disposable resource.

The following factory functions are available:

  • Disposable()

  • Disposable(onDispose: {}).

Inheritors

Properties

Link copied to clipboard
abstract val isDisposed: Boolean

Checks whether this resource is disposed or not

Functions

Link copied to clipboard
abstract fun dispose()

Disposes this resource