async
1.1.2
async-state
/
io.github.anvell.async.state
/
AsyncState
/
collectAsState
collect
As
State
open
fun
<
V
>
Flow
<
V
>
.
collectAsState
(
scope
:
CoroutineScope
,
initialState
:
Async
<
V
>
?
=
Loading()
,
reducer
:
S
.
(
Async
<
V
>
)
->
S
)
:
Job
Collect flow of values and update state with
reducer
.