OnDispose
A Disposable executing the given function on dispose()
.
Example:
val disposable = OnDispose { println("disposing myself") }
disposable.dispose() // => "disposing myself"
Content copied to clipboard
Functions
Link copied to clipboard
Disposes the Disposable when CoroutineLauncher completes (including cancellation).
Disposes the Disposable when CoroutineContext completes (including cancellation).
Disposes the Disposable when CoroutineScope completes (including cancellation).
Disposes the Disposable when Job completes (including cancellation).