MCPcopy Index your code
hub / github.com/RustPython/RustPython / abort

Method abort

Lib/threading.py:812–820  ·  view source on GitHub ↗

Place the barrier into a 'broken' state. Useful in case of error. Any currently waiting threads and threads attempting to 'wait()' will have BrokenBarrierError raised.

(self)

Source from the content-addressed store, hash-verified

810 self._cond.notify_all()
811
812 def abort(self):
813 """Place the barrier into a 'broken' state.
814
815 Useful in case of error. Any currently waiting threads and threads
816 attempting to 'wait()' will have BrokenBarrierError raised.
817
818 """
819 with self._cond:
820 self._break()
821
822 def _break(self):
823 # An internal error was detected. The barrier is set to

Callers

nothing calls this directly

Calls 1

_breakMethod · 0.95

Tested by

no test coverage detected