id go for something like isInitialized.filter true...
# rx
u
id go for something like isInitialized.filter true.delay { ... }
👍 1
s
I’m kinda going for this approach, found a delayUntil extension function gist: https://medium.com/@Cypressious/rxjava-kotlin-conditionally-delaying-the-first-item-in-a-stream-9d4e7a8d0071 And I’m now trying to convert some runnables into observables so I can use this, but it’s proving to be a bit more difficult than I anticipated. Converting runnables to completables is easy, but the delayUntil method doesn’t work then…
u
well turn it to observable then, Observable.fromCallable { yourSynchMethod() return Unit}