disposeOnCompletion
fun Job.disposeOnCompletion(
handle: DisposableHandle
): DisposableHandle
(source)Disposes a specified handle when this job is complete.
This is a shortcut for the following code with slightly more efficient implementation (one fewer object created).
invokeOnCompletion { handle.dispose() }