https://kotlinlang.org logo
#spring
Title
# spring
k

kubele

03/09/2023, 10:59 AM
Hi, is it possible to use
Scheduled
annotation with suspend function without wrapping it to a runBlocking block?
s

Sylvain Moindron

03/09/2023, 11:15 AM
It is not possible.
@Scheduled
expect a fonction without argument. At compilation time a callback argument is added for suspended function
🙏 1
104 Views