Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@Scheduled suspend fun - support #30770

Closed
denis-dbm opened this issue Jun 28, 2023 · 1 comment
Closed

@Scheduled suspend fun - support #30770

denis-dbm opened this issue Jun 28, 2023 · 1 comment
Labels
in: core Issues in core modules (aop, beans, core, context, expression) status: duplicate A duplicate of another issue type: enhancement A general enhancement

Comments

@denis-dbm
Copy link

Hi all

Is there preview to support Kotlin coroutines (suspend fun) annotated with @Scheduled? Example:

@Scheduled(fixedRate = 60_000)
suspend fun doIt() { }
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Jun 28, 2023
@bclozel
Copy link
Member

bclozel commented Jun 28, 2023

Can you try with the current 6.1.0 snapshots and let us know? This was recently implemented.
See #29924 and https://docs.spring.io/spring-framework/reference/6.1-SNAPSHOT/integration/scheduling.html#scheduling-annotation-support-scheduled-reactive

Feel free to create a new issue if the support needs refinements. Please provide a minimal sample app if you do so. Thanks!

@bclozel bclozel added status: duplicate A duplicate of another issue in: core Issues in core modules (aop, beans, core, context, expression) type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged or decided on labels Jun 28, 2023
@bclozel bclozel closed this as not planned Won't fix, can't repro, duplicate, stale Jun 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core Issues in core modules (aop, beans, core, context, expression) status: duplicate A duplicate of another issue type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

3 participants