Sounds like you need some structured concurrency. Check out Trio or AnyIO.
It's too bad we got asyncio as the standard library module, though some SC concepts are going to make it into the library in future Python versions.
It's too bad we got asyncio as the standard library module, though some SC concepts are going to make it into the library in future Python versions.
once properly configured :)