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-model-odc | |
| 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-model-odc')
| -rw-r--r-- | opendc-model-odc/jpa/src/main/kotlin/com/atlarge/opendc/model/odc/platform/JpaExperiment.kt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/opendc-model-odc/jpa/src/main/kotlin/com/atlarge/opendc/model/odc/platform/JpaExperiment.kt b/opendc-model-odc/jpa/src/main/kotlin/com/atlarge/opendc/model/odc/platform/JpaExperiment.kt index 70b9bd48..9aeb0066 100644 --- a/opendc-model-odc/jpa/src/main/kotlin/com/atlarge/opendc/model/odc/platform/JpaExperiment.kt +++ b/opendc-model-odc/jpa/src/main/kotlin/com/atlarge/opendc/model/odc/platform/JpaExperiment.kt @@ -49,6 +49,7 @@ import kotlinx.coroutines.experimental.runBlocking import mu.KotlinLogging import java.io.Closeable import javax.persistence.EntityManager +import kotlin.coroutines.experimental.coroutineContext import kotlin.system.measureTimeMillis import com.atlarge.opendc.model.odc.integration.jpa.schema.Experiment as InternalExperiment import com.atlarge.opendc.model.odc.integration.jpa.schema.Task as InternalTask |
