Actually, I use a `BehaviorSubject` (it's a `Behav...
# rx
u
Actually, I use a
BehaviorSubject
(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.