From 141c7d6af02f34ad48eed5a56ce4a089720dbbc8 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Mon, 17 Feb 2020 18:43:04 +0100 Subject: [PATCH] Update comment --- .../matrix/android/internal/task/CoroutineSequencer.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/task/CoroutineSequencer.kt b/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/task/CoroutineSequencer.kt index d36b769ef3..46cc446b87 100644 --- a/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/task/CoroutineSequencer.kt +++ b/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/task/CoroutineSequencer.kt @@ -20,7 +20,7 @@ import kotlinx.coroutines.sync.Semaphore import kotlinx.coroutines.sync.withPermit /** - * This class intends to be used for ensure suspendable methods are played sequentially all the way long. + * This class intends to be used to ensure suspendable methods are played sequentially all the way long. */ internal interface CoroutineSequencer { /** @@ -32,7 +32,8 @@ internal interface CoroutineSequencer { internal open class SemaphoreCoroutineSequencer : CoroutineSequencer { - private val semaphore = Semaphore(1) // Permits 1 suspend function at a time. + // Permits 1 suspend function at a time. + private val semaphore = Semaphore(1) override suspend fun post(block: suspend () -> T): T { return semaphore.withPermit {