change collectJob to backgroundScope

pull/1583/head
saeedishayan76 1 year ago
parent b52fa965d8
commit 854cc1a540

@ -51,6 +51,7 @@ class TestTopicDao : TopicDao {
override suspend fun upsertTopics(entities: List<TopicEntity>) { override suspend fun upsertTopics(entities: List<TopicEntity>) {
// Overwrite old values with new values // Overwrite old values with new values
entitiesStateFlow.update { oldValues -> (entities + oldValues).distinctBy(TopicEntity::id) } entitiesStateFlow.update { oldValues -> (entities + oldValues).distinctBy(TopicEntity::id) }
} }
override suspend fun deleteTopics(ids: List<String>) { override suspend fun deleteTopics(ids: List<String>) {

Loading…
Cancel
Save