https://kotlinlang.org logo
#rx
Title
# rx
u

ursus

07/15/2019, 12:29 AM
What's the cleanest way to use Rx and inheritance?
g

gildor

07/15/2019, 3:07 AM
Not sure that your question somehow specific to Rx And it’s not clear what exactly you want to achieve. Because now your code has public onSendMessageObservable method that invoked in init block (so someone can just call it and it will not be added to disposables) Also it’s usually bad practice to expose only disposable (so do side effect)
2 Views