ubu
09/07/2018, 2:35 PMBehaviorSubject
(it's a BehaviorRelay
, to be more precise) which holds asynchronously initialized SomeObject
. In some way, it works like a lateinit var
in Kotlin (but you don't need to check whether it's initialized or not). So to get this object, I subscribe to this BehaviorRelay
and add subscriptions to CompositeDisposable
. Probably I could have used take(1)
operator, but it seems to me that there is a better and more elegant way out there.