Skip to content

Commit

Permalink
V0.8.0 (#132)
Browse files Browse the repository at this point in the history
* new syntax induced by removing the async function
* add Async version of methods in the client if we do not want to wait for confirmation of message sending
* workflows can now run multiple methods in parallel
* use String for ids instead of UUIDs
* improved syntax for using channels in Java 
* refactor error management in workflows
* add unknown status for tasks and workflows, when targeting a workflow by id, unknown, or terminated
* bump version of plugins and libs
  • Loading branch information
geomagilles authored Oct 24, 2021
1 parent 4ff8da7 commit 23208f5
Show file tree
Hide file tree
Showing 220 changed files with 8,840 additions and 6,053 deletions.
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/Ci.kt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ object Ci {

// this is the version used for building snapshots
// .GITHUB_RUN_NUMBER-snapshot will be appended
private const val snapshotBase = "0.7.4"
private const val snapshotBase = "0.8.0"

private val githubRunNumber = System.getenv("GITHUB_RUN_NUMBER")

Expand Down
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/Libs.kt
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ object Libs {
}

object Coroutines {
private const val version = "1.5.1"
private const val version = "1.5.2"
const val core = "org.jetbrains.kotlinx:kotlinx-coroutines-core:$version"
const val jdk8 = "org.jetbrains.kotlinx:kotlinx-coroutines-jdk8:$version"
}
Expand Down
9 changes: 2 additions & 7 deletions buildSrc/src/main/kotlin/Plugins.kt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* Licensor: infinitic.io
*/

const val kotlinVersion = "1.5.30"
const val kotlinVersion = "1.5.31"

object Plugins {
object Kotlin {
Expand All @@ -38,12 +38,7 @@ object Plugins {

object Ktlint {
const val id = "org.jlleitschuh.gradle.ktlint"
const val version = "10.1.0"
}

object Shadow {
const val id = "com.github.johnrengelman.shadow"
const val version = "7.0.0"
const val version = "10.2.0"
}

object TestLogger {
Expand Down
18 changes: 13 additions & 5 deletions infinitic-client/src/main/kotlin/io/infinitic/client/Deferred.kt
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,18 @@

package io.infinitic.client

import java.util.UUID
import java.util.concurrent.CompletableFuture

interface Deferred<T> {
val id: UUID
fun await(): T
fun join(): Deferred<T>
interface Deferred<R> {
val id: String

fun await(): R

fun cancelAsync(): CompletableFuture<Unit>

fun cancel(): Unit = cancelAsync().join()

fun retryAsync(): CompletableFuture<Unit>

fun retry(): Unit = retryAsync().join()
}
Loading

0 comments on commit 23208f5

Please sign in to comment.