MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / _wait

Method _wait

tools/python-3.11.9-amd64/Lib/asyncio/locks.py:528–537  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

526 self._cond.notify_all()
527
528 async def _wait(self):
529 # Wait in the barrier until we are released. Raise an exception
530 # if the barrier is reset or broken.
531
532 # wait for end of filling
533 # unless a CancelledError occurs
534 await self._cond.wait_for(lambda: self._state is not _BarrierState.FILLING)
535
536 if self._state in (_BarrierState.BROKEN, _BarrierState.RESETTING):
537 raise exceptions.BrokenBarrierError("Abort or reset of barrier")
538
539 def _exit(self):
540 # If we are the last tasks to exit the barrier, signal any tasks

Callers 4

waitMethod · 0.95
waitMethod · 0.45

Calls 1

wait_forMethod · 0.45

Tested by

no test coverage detected