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