alexsullivan114
04/30/2019, 6:03 PMObservable.interval
to count down from 30 seconds to zero. After that, I want to use flatMap
and continue another Rx chain. I'm not sure what the best way is to actually know when after that
is. Using flatMap
directly after the interval
call obviously doesn't work since the flatMap
gets called after each tick of the interval. RIght now I'm using materialize
and checking if the notification isOnComplete
. Is that the best way to handle this?leolima
04/30/2019, 6:11 PMtimer
instead?pawegio
04/30/2019, 6:12 PMscan
might help too.alexsullivan114
04/30/2019, 6:34 PMTimer
only emits once the timer finishes, which is not what I want since I'm using the values that interval
produces.
scan
seems unnecessary in conjunction with interval
...I could theoretically use both interval
and timer
in two different chains to accomplish thisrusshwolf
04/30/2019, 8:17 PMconcatWith()
?alexsullivan114
05/01/2019, 5:09 PM