AttachedDisposables

interface AttachedDisposables : DisposableHandle

A Disposable that can have additional Disposables attached to it, so they are automatically disposed together with this object.

Inheritors

Properties

Link copied to clipboard

The attached disposables which should be auto-disposed when this object is disposed.

Functions

Link copied to clipboard
open override fun dispose()

Default implementation disposing the attachedDisposables.

Link copied to clipboard

Disposes the Disposable when CoroutineLauncher 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 Job completes (including cancellation).