mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-05 08:55:07 +01:00
parent
a0f47d3f1b
commit
60456fe0e9
@ -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 New Issue
Block a user