File tree Expand file tree Collapse file tree 3 files changed +8
-5
lines changed
frameworks/Kotlin/vertx-web-kotlinx Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ tasks.wrapper {
33}
44
55plugins {
6- val kotlinVersion = " 2.2.21 "
6+ val kotlinVersion = " 2.3.0-RC2 "
77 kotlin(" jvm" ) version kotlinVersion
88 kotlin(" plugin.serialization" ) version kotlinVersion
99 application
@@ -34,6 +34,6 @@ dependencies {
3434 implementation(" org.jetbrains.kotlinx:kotlinx-datetime:0.7.1" ) // TODO try using this in the code
3535}
3636
37- kotlin.jvmToolchain(21 ) // Kotlin doesn't support Java 25 yet
37+ kotlin.jvmToolchain(25 ) // Kotlin doesn't support Java 25 yet
3838
3939application.mainClass.set(" MainKt" )
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import io.vertx.core.impl.cpu.CpuCoreSensor
33import io.vertx.kotlin.core.deploymentOptionsOf
44import io.vertx.kotlin.core.vertxOptionsOf
55import io.vertx.kotlin.coroutines.coAwait
6+ import java.util.function.Supplier
67import java.util.logging.Logger
78
89const val SERVER_NAME = " Vert.x-Web Kotlinx Benchmark server"
@@ -18,7 +19,9 @@ suspend fun main(args: Array<String>) {
1819 logger.info(" Vertx exception caught: $it " )
1920 it.printStackTrace()
2021 }
21- vertx.deployVerticle({ MainVerticle (hasDb) }, deploymentOptionsOf(instances = CpuCoreSensor .availableProcessors()))
22- .coAwait()
22+ vertx.deployVerticle(
23+ Supplier { MainVerticle (hasDb) },
24+ deploymentOptionsOf(instances = CpuCoreSensor .availableProcessors())
25+ ).coAwait()
2326 logger.info(" $SERVER_NAME started." )
2427}
Original file line number Diff line number Diff line change @@ -2,4 +2,4 @@ import io.vertx.core.Future
22import io.vertx.kotlin.coroutines.coAwait
33
44suspend fun <T > List<Future<T>>.awaitAll (): List <T > =
5- Future .all(this ).coAwait().list()
5+ Future .all< T > (this ).coAwait().list()
You can’t perform that action at this time.
0 commit comments