Talk Python To Me cover image

#24: Fluent Python

Talk Python To Me

How to Use Coroutines to Manage Multiple Things at the Same Time

2min Snip

00:00
Play full episode
I wanted to show people coroutines used in an interesting way, which was not linked to a synchronous programming. So I decided to implement this discrete event simulation of taxicabs. And so there's a very simple scheduler implemented in about 10 lines of Python and makes all those caps run. The example, there are cap trips, different caps that are on the streets catching passengers and dropping off chap passengers. That sounds really cool. Definitely I'm going to check that out.

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode