(self)
| 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 |
| 541 | # waiting for the barrier to drain. |
| 542 | if self._count == 0: |
| 543 | if self._state in (_BarrierState.RESETTING, _BarrierState.DRAINING): |
| 544 | self._state = _BarrierState.FILLING |
| 545 | self._cond.notify_all() |
| 546 | |
| 547 | async def reset(self): |
| 548 | """Reset the barrier to the initial state. |
no test coverage detected