diff options
| author | Fabian Mastenbroek <fabianishere@outlook.com> | 2018-07-12 17:38:36 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-07-12 17:38:36 +0200 |
| commit | ebd8c8ee83704605241edf08c22df3562f52e689 (patch) | |
| tree | 6106ec3deea4fe00805413216ed6df5cf48c78a8 /opendc-stdlib/src | |
| parent | 91613530ca6876f0376b2878e98538c3879a29a1 (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.kt | 1 |
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 |
