Talk Python To Me cover image

#385: Higher level Python asyncio with AnyIO

Talk Python To Me

00:00

Cancel Scope or Move on After Shield True?

If you try to call a web service and wait for it to close, the connection will probably fail. So what happens there? Does it eventually just get cleaned up by the garbage collector or dereference? Well, garbage collector doesn't work as well with async stuff because the destructors could be called in any straight. You can't rely on that. It's a good idea not to try any of that. And instead just trace a resource warning.

Transcript
Play full episode

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