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