|
|
|
|
|
by PaulHoule
2575 days ago
|
|
I have been thinking about setup and teardown for asyncio apps in Python lately. The async with block is a nice idea but doesn't deal with the reality that often a resource has multiple consumers. For instance, there might be several components of an application that use a database connection -- I really want to make the connection once and tear it down only after all of the clients of that connection have themselves been torn down. What I'm imagining the answer to be is something a little bit like the Spring Framework but fundamentally centered around asyncio. |
|