I am writing desktop app using Kotlin and I want to repeat execution of function for every X seconds.
I found solutions with using android library, there is other option? Maybe something like TaskRunner in Java?
SOLUTION
I used Timer().schedule(startAfter, delay){...}
easy and simple ;)