Target filter
Search Kotlin docs
  • Platforms
  • Tealium Prism Kotlin
core/com.tealium.prism.core.api.modules/Dispatcher/dispatch

dispatch

abstract fun dispatch(dispatches: List<Dispatch>, callback: Callback<List<Dispatch>>): Disposable

Called when a new Dispatch is ready to be processed by this Dispatcher.

Calling the callback callback will remove the dispatches from the persistent queue. Typical behaviour would be to process all events and call the callback with the full list of dispatches that were provided.

If batches have to be split and processed separately, then multiple callback executions should only pass the dispatches that have been processed each time.

Return

A disposable able to halt the processing of the given dispatches

Parameters

dispatches

The batch of dispatches to be processed by this Dispatcher

callback

The callback used to indicate that the dispatches are completed.

Generated by Dokka
(c) Tealium 2026