Join Slack
Powered by
id go for something like isInitialized.filter true...
# rx
u
ursus
02/15/2019, 3:32 PM
id go for something like isInitialized.filter true.delay { ... }
👍 1
s
Schadenfreude
02/15/2019, 4:16 PM
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
ursus
02/15/2019, 5:45 PM
well turn it to observable then, Observable.fromCallable { yourSynchMethod() return Unit}
2
Views
Open in Slack
Previous
Next