MCPcopy Index your code
hub / github.com/python/cpython / _abort

Method _abort

Lib/asyncio/taskgroups.py:221–226  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

219 return isinstance(exc, (SystemExit, KeyboardInterrupt))
220
221 def _abort(self):
222 self._aborting = True
223
224 for t in self._tasks:
225 if not t.done():
226 t.cancel()
227
228 def _on_task_done(self, task):
229 self._tasks.discard(task)

Callers 2

_aexitMethod · 0.95
_on_task_doneMethod · 0.95

Calls 2

doneMethod · 0.45
cancelMethod · 0.45

Tested by

no test coverage detected