On this page
  1. threading.BrokenBarrierError
  2. Import
  3. Signature & Overview
  4. Methods & Attributes
  5. Usage
  6. Gotchas
  7. REPL Inspect

threading.BrokenBarrierError

Prev: threading.BoundedSemaphore | Up: threading | Next: threading.Condition
Rel: threading.active_count, threading.Barrier, threading.BoundedSemaphore, threading.Condition
Ref: docs.python.org โ€” threading.BrokenBarrierError
Tags: #public #python3 #stdlib #threading


Import

import threading
from threading import BrokenBarrierError

Signature & Overview

threading.BrokenBarrierError(...)

threading.BrokenBarrierError class.

Methods & Attributes

Usage

import threading

b = threading.Barrier(2)
b.abort()
try:
    b.wait()
except threading.BrokenBarrierError:
    assert b.broken is True

Gotchas

REPL Inspect

from threading import BrokenBarrierError
help(BrokenBarrierError)

Linked from

Related notes