Talk Python To Me cover image

#24: Fluent Python

Talk Python To Me

00:00

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

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.

Play episode from 59:56
Transcript

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app