(self)
| 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 |
no test coverage detected