async
1.1.2
async-state
/
io.github.anvell.async.state
/
AsyncState
/
reduceAsState
reduce
As
State
open
fun
<
V
>
ScopedDeferred
<
Result
<
V
>
>
.
reduceAsState
(
initialState
:
Async
<
V
>
?
=
Loading()
,
reducer
:
S
.
(
Async
<
V
>
)
->
S
)
:
Job
Await
result
and update state with
reducer
.