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

Method _release

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

Source from the content-addressed store, hash-verified

548 raise exceptions.BrokenBarrierError("Barrier aborted")
549
550 async def _release(self):
551 # Release the tasks waiting in the barrier.
552
553 # Enter draining state.
554 # Next waiting tasks will be blocked until the end of draining.
555 self._state = _BarrierState.DRAINING
556 self._cond.notify_all()
557
558 async def _wait(self):
559 # Wait in the barrier until we are released. Raise an exception

Callers 1

waitMethod · 0.95

Calls 1

notify_allMethod · 0.45

Tested by

no test coverage detected