Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Asyncio in Practice - We Did It Wrong

EuroPython Conference via YouTube

Overview

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

Reviews

Start your review of Asyncio in Practice - We Did It Wrong

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.