turbine
Module Contents
alltypes
Module Contents
sealed
class
Event
<
out
T
>
Module Contents
object
Complete
:
Event
<
Nothing
>
Module Contents
fun
toString
(
)
:
String
data
class
Error
:
Event
<
Nothing
>
Module Contents
Error
(
throwable
:
Throwable
)
val
throwable
:
Throwable
fun
toString
(
)
:
String
data
class
Item
<
T
>
:
Event
<
T
>
Module Contents
Item
(
value
:
T
)
fun
toString
(
)
:
String
val
value
:
T
interface
FlowTurbine
<
T
>
Module Contents
abstract
suspend
fun
cancel
(
)
:
Unit
abstract
suspend
fun
cancelAndConsumeRemainingEvents
(
)
:
List
<
Event
<
T
>
>
abstract
suspend
fun
cancelAndIgnoreRemainingEvents
(
)
:
Nothing
abstract
suspend
fun
expectComplete
(
)
:
Unit
abstract
suspend
fun
expectError
(
)
:
Throwable
abstract
suspend
fun
expectEvent
(
)
:
Event
<
T
>
abstract
suspend
fun
expectItem
(
)
:
T
abstract
fun
expectNoEvents
(
)
:
Unit
@ExperimentalTime
abstract
val
timeout
:
Duration
kotlinx.coroutines.flow.Flow
Module Contents
@ExperimentalTime
@ExperimentalCoroutinesApi
suspend
fun
<
T
>
Flow
<
T
>
.
test
(
timeout
:
Duration
=
1.seconds
,
validate
:
suspend
FlowTurbine
<
T
>
.
(
)
->
Unit
)
:
Unit
package
app.cash.turbine
Module Contents
sealed
class
Event
<
out
T
>
Module Contents
object
Complete
:
Event
<
Nothing
>
Module Contents
fun
toString
(
)
:
String
data
class
Error
:
Event
<
Nothing
>
Module Contents
Error
(
throwable
:
Throwable
)
val
throwable
:
Throwable
fun
toString
(
)
:
String
data
class
Item
<
T
>
:
Event
<
T
>
Module Contents
Item
(
value
:
T
)
fun
toString
(
)
:
String
val
value
:
T
interface
FlowTurbine
<
T
>
Module Contents
abstract
suspend
fun
cancel
(
)
:
Unit
abstract
suspend
fun
cancelAndConsumeRemainingEvents
(
)
:
List
<
Event
<
T
>
>
abstract
suspend
fun
cancelAndIgnoreRemainingEvents
(
)
:
Nothing
abstract
suspend
fun
expectComplete
(
)
:
Unit
abstract
suspend
fun
expectError
(
)
:
Throwable
abstract
suspend
fun
expectEvent
(
)
:
Event
<
T
>
abstract
suspend
fun
expectItem
(
)
:
T
abstract
fun
expectNoEvents
(
)
:
Unit
@ExperimentalTime
abstract
val
timeout
:
Duration
kotlinx.coroutines.flow.Flow
Module Contents
@ExperimentalTime
@ExperimentalCoroutinesApi
suspend
fun
<
T
>
Flow
<
T
>
.
test
(
timeout
:
Duration
=
1.seconds
,
validate
:
suspend
FlowTurbine
<
T
>
.
(
)
->
Unit
)
:
Unit