Hi folks! Is there a scheduler feature for Ktor? d...
# ktor
l
Hi folks! Is there a scheduler feature for Ktor? didn't find anything in the documentation.
m
not provided by Ktor, I think you should just use coroutines or a library built on it. If you want you can even use Java’s
ScheduledExecutorService
l
@Matteo Mirk any sample on how to achieve this with coroutines?
m
Sorry I don’t have any… I’m still studying coroutines myself 😞 Maybe these simple extensions could be of some use? https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.concurrent/java.util.-timer/index.html
👍 1