zio.ZLayer.Derive.Default
See theDefault companion object
Provides a default way to construct or provide an instance of type A
.
Used during ZLayer
derivation to resolve dependencies. If an implicit ZLayer.Derive.Default[A]
instance exists for a type, it signifies that a default value can be used, bypassing the dependency in the ZLayer
environment.
Attributes
- Note
-
When type-annotating the implicit val, ensure it's in the form
Default.WithContext[R, E, A]
rather than justDefault[A]
to ensure correct type inference and dependency resolution duringZLayer
derivation. - Companion
- object
- Graph
-
- Supertypes
Members list
In this article