Join Slack
Hey there, I'm trying to find a way to run a function every second until I stop it. Using RxJava, I...
# android
d
Dylan
12/27/2019, 12:08 PM
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
jw
12/27/2019, 1:06 PM
While true + delay
👍 2
d
Dylan
12/27/2019, 3:43 PM
Thank you 🙂
👍 1
3
Views
Open in Slack
Previous
Next
kotlinlang
A modern programming language that makes developers happier.
Powered by