turbine
/
app.cash.turbine
Package app.
cash.
turbine
Types
Functions
Types
Event
Link copied to clipboard
sealed class
Event
<out
T
>
Content copied to clipboard
FlowTurbine
Link copied to clipboard
interface
FlowTurbine
<
T
>
Content copied to clipboard
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
@
ExperimentalTime
()
suspend fun <
T
>
Flow
<
T
>.
test
(timeout:
Duration
= Duration.seconds(1), validate: suspend
FlowTurbine
<
T
>.() ->
Unit
)
Content copied to clipboard
Terminal flow operator that collects events from given flow and allows the
validate
lambda to consume and assert properties on them in order.