set

expect fun set(disposable: Disposable?)

Atomically either replaces any existing Disposable with the specified one or disposes it if wrapper is already disposed. Also disposes any replaced Disposable.

Parameters

disposable

a new Disposable, will be disposed if wrapper is already dispose

actual fun set(disposable: Disposable?)

Atomically either replaces any existing Disposable with the specified one or disposes it if wrapper is already disposed. Also disposes any replaced Disposable.

actual fun set(disposable: Disposable?)

Atomically either replaces any existing Disposable with the specified one or disposes it if wrapper is already disposed. Also disposes any replaced Disposable.

Parameters

disposable

a new Disposable, will be disposed if wrapper is already dispose