toggle menu
hakate
3.3.1
common
switch theme
search in API
hakate
/
net.kigawa.hakate.api.state
/
State
/
collect
collect
abstract
fun
collect
(
context
:
StateContext
,
block
:
suspend
StateContext
.
(
value
:
T
)
->
Unit
)
:
Job
open
fun
<
R
>
collect
(
context
:
StateContext
,
defaultValue
:
R
,
block
:
suspend
StateContext
.
(
value
:
T
,
prev
:
R
)
->
R
)
:
Job