await

suspend fun <T> Single<TealiumResult<T>>.await(): T

Suspends until the Single emits its result, then returns the unwrapped success value.

If the TealiumResult represents a failure, the contained exception is thrown at the call site, propagating it through the coroutine's normal exception handling.

The underlying subscription is disposed automatically when:

  • The Single emits (success or failure), or

  • The calling coroutine is canceled.

Throws

if the TealiumResult is a failure.