On this page
  1. threading.enumerate
  2. Import
  3. Signature & Overview
  4. Usage
  5. Gotchas
  6. REPL Inspect

threading.enumerate

Prev: threading.current_thread | Up: threading | Next: threading.Event
Rel: threading.active_count, threading.Barrier, threading.BoundedSemaphore, threading.BrokenBarrierError
Ref: docs.python.org — threading.enumerate
Tags: #public #python3 #stdlib #threading


Import

import threading
from threading import enumerate

Signature & Overview

threading.enumerate()

Return a list of all Thread objects currently alive.

Usage

import threading

threads = threading.enumerate()
assert threading.main_thread() in threads

Gotchas

REPL Inspect

from threading import enumerate
help(enumerate)

Linked from

Related notes