AcquireRelease
zio.ZLayer.Derive.AcquireRelease
trait AcquireRelease[-R, +E, A] extends Scoped[R, E]
A special form of Scoped for convenience.
When using ZLayer.derive with a type that implements AcquireRelease
, the provided acquire
and release
methods will be automatically utilized as the lifecycle hooks.
Attributes
- Note
-
This trait's lifecycle hooks are specifically designed to work with ZLayer.derive. Using it outside this context won't inherently attach any lifecycle behaviors to the type.
- Graph
-
- Supertypes
Members list
In this article