observable.create(BatteryLevelObservable()) is the...
# rx
m
observable.create(BatteryLevelObservable()) is the same thing no ?
g
No, Always use
Observable.create { emitter -> ... }
unless you understand what are you doing
also in this case
if (!emitter.isDisposed)
is not needed, it may be handled for you by emitter