mirror of
https://github.com/vector-im/riotX-android
synced 2025-10-06 00:02:48 +02:00
Realm-kotlin: add name to timeline coroutine scope
This commit is contained in:
@@ -17,6 +17,7 @@
|
|||||||
package org.matrix.android.sdk.internal.session.room.timeline
|
package org.matrix.android.sdk.internal.session.room.timeline
|
||||||
|
|
||||||
import kotlinx.coroutines.CancellationException
|
import kotlinx.coroutines.CancellationException
|
||||||
|
import kotlinx.coroutines.CoroutineName
|
||||||
import kotlinx.coroutines.CoroutineScope
|
import kotlinx.coroutines.CoroutineScope
|
||||||
import kotlinx.coroutines.Job
|
import kotlinx.coroutines.Job
|
||||||
import kotlinx.coroutines.SupervisorJob
|
import kotlinx.coroutines.SupervisorJob
|
||||||
@@ -86,7 +87,7 @@ internal class DefaultTimeline(
|
|||||||
private val backwardState = AtomicReference(Timeline.PaginationState())
|
private val backwardState = AtomicReference(Timeline.PaginationState())
|
||||||
|
|
||||||
private val timelineDispatcher = BACKGROUND_HANDLER.asCoroutineDispatcher()
|
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 sequencer = SemaphoreCoroutineSequencer()
|
||||||
private val postSnapshotSignalFlow = MutableSharedFlow<Unit>(0)
|
private val postSnapshotSignalFlow = MutableSharedFlow<Unit>(0)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user