CompositeDisposable

expect open class CompositeDisposable : Disposable

Thread-safe Disposable collection

actual open class CompositeDisposable : Disposable

Thread-safe collection of Disposable

actual open class CompositeDisposable : Disposable

Thread-safe collection of Disposable

Constructors

Link copied to clipboard
expect constructor()
actual constructor()
actual constructor()

Properties

Link copied to clipboard
expect open override val isDisposed: Boolean

Checks whether this resource is disposed or not

actual open override val isDisposed: Boolean

Checks whether this resource is disposed or not

actual open override val isDisposed: Boolean

Functions

Link copied to clipboard
expect fun add(disposable: Disposable): Boolean

Atomically either adds the specified Disposable or disposes it if container is already disposed

actual fun add(disposable: Disposable): Boolean

Atomically either adds the specified Disposable or disposes it if container is already disposed

actual fun add(disposable: Disposable): Boolean

Atomically either adds the specified Disposable or disposes it if container is already disposed

Link copied to clipboard
expect fun clear(dispose: Boolean = true)

Atomically clears all the Disposables

actual fun clear(dispose: Boolean)

Atomically clears all the Disposables

actual fun clear(dispose: Boolean)

Atomically clears all the Disposables

Link copied to clipboard
expect open override fun dispose()

Atomically disposes the collection and all its Disposables. All future Disposables will be immediately disposed.

actual open override fun dispose()

Atomically disposes the collection and all its Disposables. All future Disposables will be immediately disposed.

actual open override fun dispose()

Atomically disposes the collection and all its Disposables. All future Disposables will be immediately disposed.

Link copied to clipboard
operator fun CompositeDisposable.minusAssign(disposable: Disposable)
Link copied to clipboard
operator fun CompositeDisposable.plusAssign(disposable: Disposable)
Link copied to clipboard
expect fun purge()

Atomically removes already disposed Disposables

actual fun purge()

Atomically removes already disposed Disposables

actual fun purge()

Atomically removes already disposed Disposables

Link copied to clipboard
expect fun remove(disposable: Disposable, dispose: Boolean = false): Boolean

Atomically removes the specified Disposable from the collection.

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

Atomically removes the specified Disposable from the collection.

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

Atomically removes the specified Disposable from the collection.