summaryrefslogtreecommitdiff
path: root/opendc-model-odc
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-model-odc
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-model-odc')
-rw-r--r--opendc-model-odc/jpa/src/main/kotlin/com/atlarge/opendc/model/odc/platform/JpaExperiment.kt1
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