Target filter
Search Kotlin docs
  • Platforms
  • Tealium Prism Kotlin
core/com.tealium.prism.core.api.pubsub/Disposables/composite

composite

fun composite(): CompositeDisposable

Creates a CompositeDisposable which can be used to store multiple Disposable instances for bulk disposal.

Additional Disposable instances can be added via CompositeDisposable.add, or existing instances can be removed via CompositeDisposable.remove.

The returned implementation is not considered to be thread-safe, so interaction is expected to be constrained to an appropriate thread by the user.

Return

A Disposable to use to dispose of multiple subscriptions at once.


fun composite(scheduler: Scheduler): CompositeDisposable

Creates a CompositeDisposable which can be used to store multiple Disposable instances for bulk disposal. All methods are executed using the given scheduler to ensure operation is thread-safe.

Additional Disposable instances can be added via CompositeDisposable.add, or existing instances can be removed via CompositeDisposable.remove.

Return

A Disposable to use to dispose of multiple subscriptions at once, whilst ensuring that all operations happen on the given scheduler

Parameters

scheduler

The Scheduler implementation to use for all operations of this Disposable

Generated by Dokka
(c) Tealium 2026