From ebd8c8ee83704605241edf08c22df3562f52e689 Mon Sep 17 00:00:00 2001 From: Fabian Mastenbroek Date: Thu, 12 Jul 2018 17:38:36 +0200 Subject: refactor: Use top-level coroutineContext (#24) This change refactors the calls to the recently deprecated `CoroutineScope.coroutineContext` to use top-level `coroutineContext` property instead. This deprecation is the result of moving to the latest version of the `koltinx-coroutines` library. See https://github.com/Kotlin/kotlinx.coroutines/blob/master/CHANGES.md for more information. --- .../main/kotlin/com/atlarge/opendc/simulator/instrumentation/Helpers.kt | 1 + 1 file changed, 1 insertion(+) (limited to 'opendc-stdlib/src/main') diff --git a/opendc-stdlib/src/main/kotlin/com/atlarge/opendc/simulator/instrumentation/Helpers.kt b/opendc-stdlib/src/main/kotlin/com/atlarge/opendc/simulator/instrumentation/Helpers.kt index d6cf2e3a..e303133a 100644 --- a/opendc-stdlib/src/main/kotlin/com/atlarge/opendc/simulator/instrumentation/Helpers.kt +++ b/opendc-stdlib/src/main/kotlin/com/atlarge/opendc/simulator/instrumentation/Helpers.kt @@ -7,6 +7,7 @@ import kotlinx.coroutines.experimental.channels.produce import kotlinx.coroutines.experimental.channels.toChannel import kotlinx.coroutines.experimental.launch import kotlin.coroutines.experimental.CoroutineContext +import kotlin.coroutines.experimental.coroutineContext /** * Transform each element in the channel into a [ReceiveChannel] of output elements that is then flattened into the -- cgit v1.2.3