executeModuleTask

abstract fun <R> executeModuleTask(task: (T) -> R): Single<TealiumResult<R>>

Eagerly executes a task for the Module, with the result returned as a TealiumResult

Fails with ModuleNotEnabledException if the Module is not enabled, or with the initialization exception or Tealium.TealiumShutdownException if the Tealium instance failed to initialize or was shut down.

Return

Single containing either the result of the task, or the failing exception

Parameters

task

The task to execute for the Module