DisposableHandle

interface DisposableHandle : Registration (source)

A handle to an allocated object that can be disposed to make it eligible for garbage collection.

Functions

dispose

abstract fun dispose(): Unit

Disposes the corresponding object, making it eligible for garbage collection. Repeated invocation of this function has no effect.

Inheritors

NonDisposableHandle

object NonDisposableHandle : DisposableHandle

No-op implementation of DisposableHandle.