Place the barrier into a 'broken' state. Useful in case of error. Any currently waiting tasks and tasks attempting to 'wait()' will have BrokenBarrierError raised.
(self)
| 590 | self._cond.notify_all() |
| 591 | |
| 592 | async def abort(self): |
| 593 | """Place the barrier into a 'broken' state. |
| 594 | |
| 595 | Useful in case of error. Any currently waiting tasks and tasks |
| 596 | attempting to 'wait()' will have BrokenBarrierError raised. |
| 597 | """ |
| 598 | async with self._cond: |
| 599 | self._state = _BarrierState.BROKEN |
| 600 | self._cond.notify_all() |
| 601 | |
| 602 | @property |
| 603 | def parties(self): |