Hey there, I'm trying to find a way to run a func...
# android
d
Hey there, I'm trying to find a way to run a function every second until I stop it. Using RxJava, I can use
Flowable.interval()
(see the docs below), but I would like to use Kotlin Coroutines for that. Do you have any idea on how to do that? http://reactivex.io/RxJava/javadoc/io/reactivex/Flowable.html#interval-long-java.util.concurrent.TimeUnit-
j
While true + delay
👍 2
d
Thank you 🙂
👍 1