@Override
        public void cancel(String id) throws RemoteException {
            CommandExecutor executor = mCommandExecutorMap.get(id);
            if (executor != null) {
                synchronized (mCommandExecutorMap) {
                    try {
                        mCommandExecutorMap.remove(id);
                    } catch (Exception e) {
                        e.printStackTrace();
                    }
                }
                executor.destroy();
            }
        }
Cancel command

@param id command.id
@throws RemoteException
caprice/kit-cmd/src/main/java/net/qiujuer/genius/kit/cmd/CommandService.java