question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support kotlin coroutines in quarkus-scheduler

See original GitHub issue

Description

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:closed
  • Created 2 years ago
  • Comments:26 (17 by maintainers)

github_iconTop GitHub Comments

2reactions
geoandcommented, Apr 19, 2022

CR1 should be end of April if all goes well

2reactions
geoandcommented, Nov 16, 2021

I can take a look sometime after I get back, but it won’t be high priority

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found