Lines Matching +full:cancel +full:- +full:in +full:- +full:progress
25 a task will cancel all remaining tasks and wait for them to exit.
93 # await ... # <- CancelledError
95 # or there's an exception in "async with":
103 # We use while-loop here because "self._on_completed_fut"
106 # our own cancellation is already in progress)
134 # are other errors -- those have priority.
146 me = BaseExceptionGroup('unhandled errors in a TaskGroup', self._errors)
152 """Create a new task in this group and return it.
175 def _is_base_error(self, exc: BaseException) -> bool:
182 for t in self._tasks:
184 t.cancel()
217 # to manually cancel it to abort whatever is being run right now
218 # in the TaskGroup. But we want to mark parent task as
219 # "not cancelled" later in __aexit__. Example situation that
226 # await something # <- this needs to be canceled
230 # # Ignore any exceptions raised in the TaskGroup
236 self._parent_task.cancel()