startExecution method
For a more fine grained control to simulate the different states of an RxCommand
there are these functions
startExecution
will issue a CommandResult with
data: null
error: null
isExecuting : true
Implementation
void startExecution() {
_commandResultsSubject.add(new CommandResult(_emitLastResult ? lastResult : null, null, true));
_canExecuteSubject.add(false);
}