Asyncaiel allows you to specify a limiter and it uses the default limiter which has capacity of 40 threads. Much more than that, you end up with memory and context switching issues. So basically, if you've got some function that is not Async, but you want to be able to await it, so that basically run it on a background thread. Here, you just say any IO dot to thread, and then dot run sync, and you give it the function to call, and now you can await it. And it runs on a backgroundthread in this thread pool, which is really nice.

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