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

Method abort

Lib/asyncio/locks.py:592–600  ·  view source on GitHub ↗

Place the barrier into a 'broken' state. Useful in case of error. Any currently waiting tasks and tasks attempting to 'wait()' will have BrokenBarrierError raised.

(self)

Source from the content-addressed store, hash-verified

590 self._cond.notify_all()
591
592 async def abort(self):
593 """Place the barrier into a 'broken' state.
594
595 Useful in case of error. Any currently waiting tasks and tasks
596 attempting to 'wait()' will have BrokenBarrierError raised.
597 """
598 async with self._cond:
599 self._state = _BarrierState.BROKEN
600 self._cond.notify_all()
601
602 @property
603 def parties(self):

Callers 15

test_reprMethod · 0.95
test_abort_barrierMethod · 0.95
connection_madeMethod · 0.45
abort_clientsMethod · 0.45
test_abortMethod · 0.45
tearDownMethod · 0.45
_test_abort_fMethod · 0.45
tearDownMethod · 0.45
fMethod · 0.45
test_reprMethod · 0.45
test_abortMethod · 0.45

Calls 1

notify_allMethod · 0.45

Tested by 14

test_reprMethod · 0.76
test_abort_barrierMethod · 0.76
test_abortMethod · 0.36
tearDownMethod · 0.36
_test_abort_fMethod · 0.36
tearDownMethod · 0.36
fMethod · 0.36
test_reprMethod · 0.36
test_abortMethod · 0.36
coroMethod · 0.36
test_abortMethod · 0.36