Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore the advantages of structured concurrency in Python's async programming paradigm in this 22-minute PyCon US talk. Dive into the world of async Python, comparing it to traditional concurrency options like processes and threads. Learn how to manage shared state effectively while ensuring task progress through strategic use of await, async for, and async with statements. Discover techniques for error handling, timeouts, cancellation, and writing readable code in async environments. Gain insights into mitigating problems associated with cooperative concurrency, such as slow tasks halting program execution. Explore static analysis using flake8-trio and learn to create custom AST-based tools. Understand how dynamic analysis can complement static checks to catch potential issues. By the end of this talk, you'll be equipped to write beautiful, efficient async code for various applications, from web scraping to game development, with confidence in your tools to support you.