Support kotlin coroutines in quarkus-scheduler
See original GitHub issueDescription
quarkus-scheduler
does not support suspend functions.
In the past i bridged the gap with custom code, but i think it should be supported by quarkus.
I had this requirement multiple times.
@ApplicationScoped
class SomeBean {
@Scheduled(every="10s")
suspend fun doSomething() {
// ...
}
}
Implementation ideas
No response
Issue Analytics
- State:
- Created 2 years ago
- Comments:26 (17 by maintainers)
Top Results From Across the Web
Using Kotlin - Quarkus
Quarkus provides first class support for using Kotlin as will be explained in this guide. Prerequisites. To complete this guide, you need: Roughly...
Read more >Scheduling Periodic Tasks - Quarkus
In this guide, you learn how to schedule periodic tasks. ... To create a Gradle project, add the --gradle or --gradle-kotlin-dsl option.
Read more >Getting Started With Reactive - Quarkus
Kotlin co-routines - a way to write asynchronous code in a sequential manner ... The Quarkus architecture is ready to support Loom as...
Read more >Scheduler Reference Guide - Quarkus
A method annotated with @io.quarkus.scheduler.Scheduled is automatically scheduled for invocation. A scheduled method must not be abstract or private. It may be ...
Read more >Quarkus Reactive Architecture
Quarkus is not only going to help you build reactive systems. ... Kotlin coroutines are great when developing in Kotlin and only need...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
CR1 should be end of April if all goes well
I can take a look sometime after I get back, but it won’t be high priority