mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-10 12:57:47 +01: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 kotlinx.coroutines.channels.Channel
|
||||
import kotlinx.coroutines.flow.collectLatest
|
||||
import kotlinx.coroutines.flow.consumeAsFlow
|
||||
import kotlinx.coroutines.flow.receiveAsFlow
|
||||
import kotlinx.coroutines.flow.update
|
||||
import kotlinx.coroutines.launch
|
||||
import uy.kohesive.injekt.Injekt
|
||||
|
@ -28,7 +28,7 @@ class CategoryScreenModel(
|
|||
) : StateScreenModel<CategoryScreenState>(CategoryScreenState.Loading) {
|
||||
|
||||
private val _events: Channel<CategoryEvent> = Channel()
|
||||
val events = _events.consumeAsFlow()
|
||||
val events = _events.receiveAsFlow()
|
||||
|
||||
init {
|
||||
coroutineScope.launch {
|
||||
|
|
Loading…
Reference in a new issue