kotlin to 1.3.20
This commit is contained in:
parent
25248f6cca
commit
64a23545f7
@ -1,8 +1,8 @@
|
||||
buildscript {
|
||||
extra["kotlinVersion"] = "1.3.11"
|
||||
extra["kotlinVersion"] = "1.3.20"
|
||||
extra["ioVersion"] = "0.1.2"
|
||||
extra["serializationVersion"] = "0.9.1"
|
||||
extra["coroutinesVersion"] = "1.1.0"
|
||||
extra["coroutinesVersion"] = "1.1.1"
|
||||
|
||||
val kotlinVersion: String by extra
|
||||
val ioVersion: String by extra
|
||||
@ -35,7 +35,7 @@ allprojects {
|
||||
}
|
||||
|
||||
group = "hep.dataforge"
|
||||
version = "0.1.1-dev-1"
|
||||
version = "0.1.1-dev-2"
|
||||
}
|
||||
|
||||
if (file("artifactory.gradle").exists()) {
|
||||
|
@ -63,13 +63,14 @@ private class StaticGoalImpl<T>(val context: CoroutineContext, deferred: Complet
|
||||
override val totalWork: Double get() = 0.0
|
||||
override val workDone: Double get() = 0.0
|
||||
override val coroutineContext: CoroutineContext get() = context
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Create a new [Goal] with given [dependencies] and execution [block]. The block takes monitor as parameter.
|
||||
* The goal block runs in a supervised scope, meaning that when it fails, it won't affect external scope.
|
||||
*
|
||||
* **Important:** Unlike regular deferred, the [Goal] is started lazily, so the actual calculation is called only when result is requested.
|
||||
*/
|
||||
fun <R> CoroutineScope.createGoal(dependencies: Collection<Goal<*>>, block: suspend GoalMonitor.() -> R): Goal<R> {
|
||||
val monitor = GoalMonitor()
|
||||
|
@ -1,13 +1,8 @@
|
||||
package hep.dataforge.io
|
||||
|
||||
import hep.dataforge.context.Context
|
||||
import hep.dataforge.context.ContextAware
|
||||
import hep.dataforge.meta.EmptyMeta
|
||||
import hep.dataforge.meta.Meta
|
||||
import kotlinx.coroutines.Dispatchers
|
||||
import kotlinx.coroutines.GlobalScope
|
||||
import kotlinx.coroutines.launch
|
||||
import kotlin.reflect.KClass
|
||||
|
||||
/**
|
||||
* A generic way to render any object in the output.
|
||||
|
Loading…
Reference in New Issue
Block a user