Skip to content

23.3.0

Compare
Choose a tag to compare
@hynek hynek released this 20 Jul 12:19
· 515 commits to main since this release
23.3.0
0e1b71b

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