def _cancel(self): if self._main_task is not None: if not self._main_task.done(): if self._main_task_cancel is not None: self._main_task_cancel() self._main_task_cancel = None self._main_task.cancel() SubProcess._cancel(self) self._cgroup_cleanup()
def _cancel(self): SubProcess._cancel(self) if self._main_task is not None: self._main_task.done() or self._main_task.cancel() self._cgroup_cleanup()
def _cancel(self): SubProcess._cancel(self) self._cgroup_cleanup()