dispose method

void dispose ()

If you don't need a command any longer it is a good practise to dispose it to make sure all stream subsriptions are cancelled to prevent memory leaks

Implementation

void dispose()
{
    _isExecutingSubject.close();
    _canExecuteSubject.close();
    _thrownExceptionsSubject.close();
    _resultsSubject.close();
    this._commandResultsSubject.close();
}