Overview
Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore common pitfalls and best practices in asynchronous Python programming using asyncio in this EuroPython 2018 conference talk. Delve into real-world examples that illustrate potential issues like callback hell, thread safety violations, and deadlocks. Learn how to properly implement concurrency, call coroutines from synchronous code, manage threads, and gracefully shut down async programs. Discover hidden "gotchas" and gain insights into exception handling, event-driven services, and working with coroutines. Examine topics such as signal handlers, exception wrappers, and the asyncio gather function. Benefit from the speaker's firsthand experiences to avoid common mistakes and improve your asyncio implementations.
Syllabus
Introduction
What is asyncio
Fake news
Realworld example
Exception Handling
iOS API
Eventdriven service
Publishing messages
Consumer
Serial
Acknowledge
Coroutine
Review
Signal Handler
Exception Wrapper
No Standard
Shield
Cleanup
Deconstruction
Exceptions
Example
asyncio gather
I think I owe
asyncio extras
Threaded code
Taught by
EuroPython Conference