remove

expect fun remove(disposable: Disposable, dispose: Boolean = false): Boolean

Atomically removes the specified Disposable from the collection.

Return

true if Disposable was removed, false otherwise

Parameters

disposable

the Disposable to remove

dispose

if true then the Disposable will be disposed if removed, default value is false

actual fun remove(disposable: Disposable, dispose: Boolean): Boolean

Atomically removes the specified Disposable from the collection.

Return

true if Disposable was removed, false otherwise

Parameters

disposable

the Disposable to remove

dispose

if true then the Disposable will be disposed if removed, default value is false

actual fun remove(disposable: Disposable, dispose: Boolean): Boolean

Atomically removes the specified Disposable from the collection.

Return

true if Disposable was removed, false otherwise

Parameters

disposable

the Disposable to remove

dispose

if true then the Disposable will be disposed if removed, default value is false