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/model/odc/platform/JpaExperiment.kt | 1 + 1 file changed, 1 insertion(+) (limited to 'opendc-model-odc') 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 -- cgit v1.2.3