1
0
mirror of https://github.com/vector-im/riotX-android synced 2025-10-05 15:52:47 +02:00

Realm-kotlin: add name to timeline coroutine scope

This commit is contained in:
ganfra
2022-10-21 17:13:22 +02:00
parent e1031fab0f
commit fc19bf8e5b

View File

@@ -17,6 +17,7 @@
package org.matrix.android.sdk.internal.session.room.timeline
import kotlinx.coroutines.CancellationException
import kotlinx.coroutines.CoroutineName
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Job
import kotlinx.coroutines.SupervisorJob
@@ -86,7 +87,7 @@ internal class DefaultTimeline(
private val backwardState = AtomicReference(Timeline.PaginationState())
private val timelineDispatcher = BACKGROUND_HANDLER.asCoroutineDispatcher()
private val timelineScope = CoroutineScope(sessionCoroutineScope.coroutineContext + SupervisorJob() + timelineDispatcher)
private val timelineScope = CoroutineScope(sessionCoroutineScope.coroutineContext + SupervisorJob() + timelineDispatcher + CoroutineName("Timeline"))
private val sequencer = SemaphoreCoroutineSequencer()
private val postSnapshotSignalFlow = MutableSharedFlow<Unit>(0)