Solutions
Multiplatform
Server-side
Data science
Android
Docs
Community
Teach
Play
Playground
Examples
Koans
kotlinx.coroutines
Toggle table of contents
1.10.2
common
Platform filter
common
Switch theme
kotlinx.coroutines
kotlinx-coroutines-core
/
kotlinx.coroutines.flow
/
asStateFlow
as
State
Flow
fun
<
T
>
MutableStateFlow
<
T
>
.
asStateFlow
(
)
:
StateFlow
<
T
>
(
source
)
Represents this mutable state flow as a read-only state flow.