Join Slack
Powered by
observable.create(BatteryLevelObservable()) is the...
# rx
m
myanmarking
06/18/2019, 3:07 PM
observable.create(BatteryLevelObservable()) is the same thing no ?
g
gildor
06/19/2019, 2:03 AM
No, Always use
Observable.create { emitter -> ... }
gildor
06/19/2019, 2:03 AM
unless you understand what are you doing
gildor
06/19/2019, 2:04 AM
also in this case
if (!emitter.isDisposed)
is not needed, it may be handled for you by emitter
Open in Slack
Previous
Next