https://kotlinlang.org logo
#ktor
Title
# ktor
l

Luiz Aguiar

12/10/2019, 2:01 PM
Hi folks! Is there a scheduler feature for Ktor? didn't find anything in the documentation.
m

Matteo Mirk

12/11/2019, 1:47 PM
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

Luiz Aguiar

12/11/2019, 2:56 PM
@Matteo Mirk any sample on how to achieve this with coroutines?
m

Matteo Mirk

12/11/2019, 3:15 PM
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
3 Views