I'm creating a RxCommand from a stream with a timeout. After disposing the RxCommand the timeout still emits and an exception is thrown.
var command = RxCommand.createFromStream(
(_) => someBroadcastStream
.timeout(Duration(milliseconds: 1000))
.onErrorResume((e) => e.add('do something')));
command();
command.dispose();
Exception is thrown rx_command.dart line 642
It looks like the inputObservable is not closed on dispose, so it is still listening to emitted notifications (i.e. from the timeout exception). Should this subscription also be disposed?
I'm creating a RxCommand from a stream with a timeout. After disposing the RxCommand the timeout still emits and an exception is thrown.
Exception is thrown rx_command.dart line 642
It looks like the
inputObservableis not closed on dispose, so it is still listening to emitted notifications (i.e. from the timeout exception). Should this subscription also be disposed?