nthEffect

Returns the effect transmission at the specified index.

Return

The effect at the specified index, or null if index is out of bounds

Example:

val firstEffect = nthEffect(0) // First effect emitted
val secondEffect = nthEffect(1) // Second effect emitted

Parameters

index

Zero-based index of the effect transmission to retrieve