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

Method _exit

Lib/asyncio/locks.py:569–575  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

567 raise exceptions.BrokenBarrierError("Abort or reset of barrier")
568
569 def _exit(self):
570 # If we are the last tasks to exit the barrier, signal any tasks
571 # waiting for the barrier to drain.
572 if self._count == 0:
573 if self._state in (_BarrierState.RESETTING, _BarrierState.DRAINING):
574 self._state = _BarrierState.FILLING
575 self._cond.notify_all()
576
577 async def reset(self):
578 """Reset the barrier to the initial state.

Callers 5

waitMethod · 0.95
handle_errorMethod · 0.45
exithookMethod · 0.45
_launchMethod · 0.45
mainFunction · 0.45

Calls 1

notify_allMethod · 0.45

Tested by

no test coverage detected