damien5314
07/14/2017, 3:32 PMgregd
07/14/2017, 4:00 PMtrevjones
07/14/2017, 4:06 PMObservable<Optional<DvrService>>
this allows me to keep retrying to connect to the device if the empty optional was caused by network flake rather than non existent hardware registrations.gregd
07/14/2017, 4:19 PMgregd
07/14/2017, 4:19 PMtrevjones
07/14/2017, 4:24 PMgregd
07/14/2017, 4:26 PMnull
in that case 😄trevjones
07/14/2017, 4:31 PMgregd
07/14/2017, 4:39 PMgregd
07/14/2017, 4:40 PMtrevjones
07/14/2017, 4:43 PMdamirb
07/14/2017, 4:53 PMtschuchort
07/14/2017, 6:27 PMEvent
, how would I merge them into a single stream/observable of it's common super type Event
?trevjones
07/14/2017, 6:28 PMcast
operator you can call on each of them and then use merge
tschuchort
07/14/2017, 6:29 PMtschuchort
07/14/2017, 6:29 PMmergeCast
extension functiontrevjones
07/14/2017, 6:30 PMtrevjones
07/14/2017, 6:30 PMgregd
07/14/2017, 6:31 PMObservable.merge()
casts them to the parent typetschuchort
07/14/2017, 6:32 PMgregd
07/14/2017, 6:32 PMgregd
07/14/2017, 6:33 PMtschuchort
07/14/2017, 6:34 PMgregd
07/14/2017, 6:35 PMmalvadeza
07/14/2017, 6:57 PMObservable.merge<TYPE>()
but it should work without ittrevjones
07/14/2017, 7:09 PMtrevjones
07/14/2017, 7:10 PMthomasnield
07/14/2017, 7:10 PMComboBox<String>
that doesn't have a selection yet). It is valid to emit that null value as an Optional<String>
which indicates a state that nothing is selectedthomasnield
07/14/2017, 7:11 PMgregd
07/14/2017, 7:13 PM