Skip to content

Reference: Concurrency

Quick-lookup pages. Short, dense, designed to skim. If you're here to learn the topic for the first time, start with Learn instead.

Pages in this section

  • asyncio cheatsheet — the everyday asyncio surface on one page: run, gather, TaskGroup, create_task, sleep, wait_for/timeout, to_thread, and the synchronisation primitives (Lock, Semaphore, Event, Queue).
  • concurrent.futures referenceThreadPoolExecutor and ProcessPoolExecutor, submit versus map, the Future object, as_completed, wait, and shutdown semantics.
  • Threading and multiprocessing reference — the lower-level primitives: Thread, Process, Lock/RLock, Event, Condition, Queue, and the shared-state tools of multiprocessing.