summaryrefslogtreecommitdiff
path: root/opendc-stdlib/src
diff options
context:
space:
mode:
authorFabian Mastenbroek <fabianishere@outlook.com>2018-07-12 17:38:36 +0200
committerGitHub <noreply@github.com>2018-07-12 17:38:36 +0200
commitebd8c8ee83704605241edf08c22df3562f52e689 (patch)
tree6106ec3deea4fe00805413216ed6df5cf48c78a8 /opendc-stdlib/src
parent91613530ca6876f0376b2878e98538c3879a29a1 (diff)
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.
Diffstat (limited to 'opendc-stdlib/src')
-rw-r--r--opendc-stdlib/src/main/kotlin/com/atlarge/opendc/simulator/instrumentation/Helpers.kt1
1 files changed, 1 insertions, 0 deletions
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