Skip to content

Asynchronous Processing

Despite the fair biit of controversy, Python does support various means of achieving concurrency: processes, threads, and, as of recently async IO support, based on an event-loop.

What to use where

if io_bound:
    if io_very_slow:
        print("Use Asyncio")
       print("Use Threads")
    print("Multi Processing")

via Async Python: The Different Forms of Concurrency