https://kotlinlang.org logo
#coroutines
Title
# coroutines
d

dave08

07/17/2019, 12:17 PM
Where are all the gradle artifacts for coroutines (rx, debug), I can't seem to find how to include them in gradle. The docs only have core...
m

mbonnin

07/17/2019, 12:27 PM
Just replace
core
with the artifact you need (debug, rx2, ...)
d

dave08

07/17/2019, 12:28 PM
Thanks 🙂! Also, is there a way to convert a flowable or observable to a Flow?
It seems like a Flow can be converted to them, but not them to a Flow...
It takes an Observable and turns it into a ReceiveChannel
not sure about Flowable to Flow
d

dave08

07/17/2019, 1:41 PM
But it doesn't appear on
Observable
...?
Is Rx2 Observable derived from
Publisher
?
g

gildor

07/17/2019, 1:42 PM
Yes, make sense probably add it to observable too, but you can just do toFlowable(BackpressureStrategy).asFlow()
👍🏼 1
No, Publisher is reactive streams specification, only Flowable compatible with it
2 Views