scope

abstract fun <T : Disposable> T.scope(): T

Adds this Disposable to the scope


abstract fun <T> T.scope(onDispose: (T) -> Unit): T