https://kotlinlang.org logo
#coroutines
Title
# coroutines
j

Jason

11/07/2019, 3:32 AM
Hi guys! How to you polling with
flow
. I just want to looping forever by using Flow of coroutine. Actually I dont like while(true). Any support method ?
s

streetsofboston

11/07/2019, 4:50 AM
What is wrong with
while(true)
?
j

Jason

11/07/2019, 6:39 AM
@streetsofboston In fact, there were no problem with
while(true)
. I’ve just think that there any other way to write polling logic. RxJava provides many method that helps us implement polling.
e

elizarov

11/07/2019, 6:58 AM
If you have some specific ideas on what we could add to make it simpler, please submit an issue to http://github.com/kotlin/kotlinx.coroutines/issues
3 Views