Releases: hynek/svcs
Releases · hynek/svcs
23.3.0
Added
- Async method
Container.aget()
. This was necessary for generator-based cleanups. It works with sync factories too, so you can use it universally in async code. - Async method
ServicePing.aping()
. It works with sync factories and pings too, so you can use it universally in async code. #4
Changed
- Switched the cleanup mechanism from passing a function to allowing the factory to be a generator that yields the resource and can clean up after the
yield
. Just like Pytest fixtures. #3