These are chat archives for ReactiveX/RxJava

12th
Nov 2017
James Turner
@jamesturner
Nov 12 2017 16:32
Hi, what is the best way to repeat an observable when you need the code in the Observable.create to run again?
Dorus
@Dorus
Nov 12 2017 16:33
.repeat()?
James Turner
@jamesturner
Nov 12 2017 16:38
From what I can tell, that will simply repeat the same items from the Observable right?
Rather than re-run the code used to create the observable
Actually, just found that I think I can do this using Observable.interval(X, TimeUnit.SECONDS).map(re-run the code in this lambda).subscribe()...
Dorus
@Dorus
Nov 12 2017 17:36
yeah that's a cleaner way
how do you do this TimeUnit.SECONDS stuff?