Skip to content

Commit 7e0911a

Browse files
committed
Fixed atomic var -> val
1 parent fb6f240 commit 7e0911a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

core/kotlinx-coroutines-core/test/internal/LockFreeMPSCQueueStressTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class LockFreeMPSCQueueStressTest : TestBase() {
2121
private val consumed = atomic(0L)
2222
private var expected = LongArray(nProducers)
2323

24-
private var queue = atomic<LockFreeMPSCQueue<Item>?>(null)
24+
private val queue = atomic<LockFreeMPSCQueue<Item>?>(null)
2525
private val done = atomic(0)
2626
private val doneProducers = atomic(0)
2727

core/kotlinx-coroutines-core/test/scheduling/SchedulerTestBase.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ abstract class SchedulerTestBase : TestBase() {
5959
suspend fun Iterable<Job>.joinAll() = forEach { it.join() }
6060
}
6161

62-
private var exception = atomic<Throwable?>(null)
62+
private val exception = atomic<Throwable?>(null)
6363
private val handler = CoroutineExceptionHandler({ _, e -> exception.value = e })
6464

6565
protected var corePoolSize = 1

0 commit comments

Comments
 (0)