Skip to content

parsley v0.7.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@matzefriedrich matzefriedrich released this 04 Aug 21:17
· 39 commits to main since this release
91ab986

Changes

  • Adds the RegisterLazy[T] method to register a lazy service factory. Use the type Lazy[T] to consume a lazy service dependency and call its Value() T method to request the actual service instance. The lazy instance will create and cache the service instance upon the first request. Each subsequent call to the Value method will return the cached value.