Replies: 2 comments
-
|
아래 코드들은 전부 fun test() = runBlocking {
val state = MutableStateFlow(1)
state.collect { println("First: $it") }
state.collect { println("Second: $it") }
}fun test() = runBlocking {
val state = MutableStateFlow(1)
launch {
state.collect { println("First: $it") }
state.collect { println("Second: $it") }
}
}fun test() = runBlocking {
val state = MutableStateFlow(1)
state.collect { println("First: $it") }
launch {
state.collect { println("Second: $it") }
}
} |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
콜드 플로우를 SharedFlow나 StateFlow로 바꿔야 할 시점은 언제일까? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
11주차 챕터별 질문 남겨주세요.
chap16
질문이란??
Beta Was this translation helpful? Give feedback.
All reactions