toggle menu
hakate
3.3.1
common
switch theme
search in API
hakate
/
net.kigawa.hakate.api.state
/
StateContext
State
Context
interface
StateContext
Inheritors
MergedStateContextImpl
StateContextImpl
Members
Properties
coroutine
Scope
Link copied to clipboard
abstract
val
coroutineScope
:
CoroutineScope
Functions
cancel
Link copied to clipboard
abstract
fun
cancel
(
)
collect
Link copied to clipboard
open
fun
<
T
>
State
<
T
>
.
collect
(
block
:
suspend
StateContext
.
(
value
:
T
)
->
Unit
)
:
Job
open
fun
<
T
,
R
>
State
<
T
>
.
collect
(
defaultValue
:
R
,
block
:
suspend
StateContext
.
(
value
:
T
,
prev
:
R
)
->
R
)
:
Job
dispatch
Link copied to clipboard
abstract
fun
dispatch
(
block
:
suspend
StateContext
.
(
)
->
Unit
)
:
Job
dispatcher
Link copied to clipboard
abstract
fun
dispatcher
(
)
:
StateDispatcher
launch
Link copied to clipboard
abstract
fun
launch
(
block
:
suspend
CoroutineScope
.
(
)
->
Unit
)
:
Job
merge
Link copied to clipboard
open
fun
merge
(
other
:
StateContext
)
:
StateContext
new
State
Context
Link copied to clipboard
abstract
fun
newStateContext
(
)
:
StateContext