Package-level declarations

Types

Link copied to clipboard

Represents a scope of Disposables. All scoped Disposables are disposed when the DisposableScope is disposed.

Functions

Link copied to clipboard

Creates a new instance of DisposableScope

Link copied to clipboard

Creates a new instance of DisposableScope and calls the provided block on it

Link copied to clipboard
inline fun DisposableScope.doOnDispose(crossinline block: () -> Unit)

Adds the provided block callback to the scope. The callback will be called when the scope is disposed.