SuspendCloseableObservable

Used for implementations of SuspendCloseable that need observers attached to be notified when SuspendCloseable.close is called.

Inheritors

Functions

Link copied to clipboard
abstract suspend fun close()
Link copied to clipboard
abstract suspend fun onClose(onClose: suspend () -> Unit)

Add a callback to be invoked when SuspendCloseable.close is called.