I'm new to Rxjava and could not find an example or appropriate usage of single.delay() that uses the result of the previous flatmap as the delay. My aim is to use the result of functionOne() to set the delay dynamically.
.flatMap(o -> functionOne(para),Pair::new)
.flatMap(pair -> Single.delay(pair.first, TimeUnit.millis))
.doOnSuccess(o -> funcitonTwo(driver, pair.two))
I'm really shooting in the dark but some things I gave a try where; delaySubscription, retryWhen, replayWhen,
I could not get these examples to work.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4