Target filter
Search Kotlin docs
  • Back
  • Tealium Prism Kotlin SDK Reference
core/com.tealium.prism.core.api.pubsub/Observable/take

take

open fun take(count: Int): Observable<T>

Returns an observable that emits only the specified number of events given by the provided count

Parameters

count

The number of emissions to emit downstream; must be a positive integer

Throws

IllegalArgumentException

when count is less than or equal to zero

Generated by Dokka
(c) Tealium 2026