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

when count is less than or equal to zero