helidon-io / helidon

Java libraries for writing microservices
https://helidon.io
Apache License 2.0
3.51k stars 566 forks source link

Support Kotlin Coroutines #3623

Open khovanskiy opened 2 years ago

khovanskiy commented 2 years ago

It will be nice to support Kotlin Coroutines in Helidon MP REST services. It would help to migrate our existing non-blocking micro-services from Spring to Helidon.

Example:

@Path("/example")
class ExampleService {
    @Path("/test")
    @GET
    suspend fun test(
        @QueryParam("param1") param1: String?,
        @QueryParam("param2") param2: String?
    ) : Any {
        val result = doSomeSuspendedLongTask()
        return result
    }
}
DmitriyO commented 2 years ago

Hello guys :) are there any updates on this issue? and plans to support this at some point?