lagom icon indicating copy to clipboard operation
lagom copied to clipboard

Support for AsyncContextManager?

Open bastienexertier opened this issue 2 years ago • 1 comments

Hi Steve, I really love using lagom.

However, it seems that we cannot register/resolve async context managesr in the same way we can with context managers and ContextContainer. For example, I could find a way to resolve my dependecy on httpx.AsyncClient and be able to properly close the client afterwards. Is there any way this could be implemented?

Thanks!

bastienexertier avatar May 01 '22 21:05 bastienexertier

@Herbivicous This is definitely something that lagom should/could support. I've got some time this week to take a look but I'm also happy to accept PRs for this if it's something you're interested in doing.

meadsteve avatar May 03 '22 08:05 meadsteve