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

Method _wait

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

Source from the content-addressed store, hash-verified

556 self._cond.notify_all()
557
558 async def _wait(self):
559 # Wait in the barrier until we are released. Raise an exception
560 # if the barrier is reset or broken.
561
562 # wait for end of filling
563 # unless a CancelledError occurs
564 await self._cond.wait_for(lambda: self._state is not _BarrierState.FILLING)
565
566 if self._state in (_BarrierState.BROKEN, _BarrierState.RESETTING):
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

Callers 5

waitMethod · 0.95
waitMethod · 0.45
kill_runningMethod · 0.45

Calls 1

wait_forMethod · 0.45

Tested by 1

kill_runningMethod · 0.36