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