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¶
asynciocheatsheet — the everydayasynciosurface on one page:run,gather,TaskGroup,create_task,sleep,wait_for/timeout,to_thread, and the synchronisation primitives (Lock,Semaphore,Event,Queue).concurrent.futuresreference —ThreadPoolExecutorandProcessPoolExecutor,submitversusmap, theFutureobject,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 ofmultiprocessing.