Package app.cash.turbine

Types

Event
Link copied to clipboard
sealed class Event<out T>
FlowTurbine
Link copied to clipboard
interface FlowTurbine<T>
Represents active collection on a source Flow which buffers item emissions, completion, and/or errors as events for consuming.

Functions

test
Link copied to clipboard
suspend fun <T> Flow<T>.test(timeout: Duration = Duration.seconds(1), validate: suspend FlowTurbine<T>.() -> Unit)
Terminal flow operator that collects events from given flow and allows the validate lambda to consume and assert properties on them in order.