mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-29 11:03:12 -05:00
parent
a0f47d3f1b
commit
60456fe0e9
1 changed files with 2 additions and 2 deletions
|
@ -13,7 +13,7 @@ import eu.kanade.domain.category.model.Category
|
||||||
import eu.kanade.tachiyomi.R
|
import eu.kanade.tachiyomi.R
|
||||||
import kotlinx.coroutines.channels.Channel
|
import kotlinx.coroutines.channels.Channel
|
||||||
import kotlinx.coroutines.flow.collectLatest
|
import kotlinx.coroutines.flow.collectLatest
|
||||||
import kotlinx.coroutines.flow.consumeAsFlow
|
import kotlinx.coroutines.flow.receiveAsFlow
|
||||||
import kotlinx.coroutines.flow.update
|
import kotlinx.coroutines.flow.update
|
||||||
import kotlinx.coroutines.launch
|
import kotlinx.coroutines.launch
|
||||||
import uy.kohesive.injekt.Injekt
|
import uy.kohesive.injekt.Injekt
|
||||||
|
@ -28,7 +28,7 @@ class CategoryScreenModel(
|
||||||
) : StateScreenModel<CategoryScreenState>(CategoryScreenState.Loading) {
|
) : StateScreenModel<CategoryScreenState>(CategoryScreenState.Loading) {
|
||||||
|
|
||||||
private val _events: Channel<CategoryEvent> = Channel()
|
private val _events: Channel<CategoryEvent> = Channel()
|
||||||
val events = _events.consumeAsFlow()
|
val events = _events.receiveAsFlow()
|
||||||
|
|
||||||
init {
|
init {
|
||||||
coroutineScope.launch {
|
coroutineScope.launch {
|
||||||
|
|
Loading…
Reference in a new issue