disposeOnCompletionOf

Disposes the Disposable when Job completes (including cancellation).


Disposes the Disposable when CoroutineContext completes (including cancellation).


fun Disposable.disposeOnCompletionOf(scope: CoroutineScope): Disposable

Disposes the Disposable when CoroutineScope completes (including cancellation).


Disposes the Disposable when CoroutineLauncher completes (including cancellation).