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