Add support for suspending functions

This also changes CommandExecutionHandler to return futures instead. The old method is still supported, and the new future-returning method will delegate to the old non-returning method.
This commit is contained in:
Alexander Söderberg 2021-07-07 14:03:06 +01:00 committed by Jason
parent c16ee8049b
commit 7bb5e63dc7
12 changed files with 556 additions and 249 deletions

View file

@ -4,6 +4,7 @@ import java.net.URL
plugins {
kotlin("jvm") version "1.4.31"
id("org.jetbrains.dokka") version "1.4.20"
id("com.ncorti.ktfmt.gradle") version "0.6.0"
}
configurations.all {
@ -13,7 +14,14 @@ configurations.all {
dependencies {
api(project(":cloud-core"))
implementation(kotlin("stdlib-jdk8"))
implementation(project(":cloud-annotations"))
implementation("org.jetbrains.kotlin:kotlin-reflect:1.4.31")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.3")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-jdk8:1.4.3")
testImplementation("org.jetbrains.kotlin", "kotlin-test-junit5")
testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-jdk8:1.4.3")
}
tasks {
@ -42,3 +50,7 @@ tasks {
kotlin {
explicitApi()
}
ktfmt {
dropboxStyle()
}