Disposable

Represents a type which can release resources, such as event listening or a timer.

Online Documentation

Inheritors

Constructors

Link copied to clipboard
constructor(callOnDispose: () -> Unit)

Creates a new disposable that calls the provided function on dispose.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun dispose()

Dispose this object.