Default

zio.ZLayer.Derive.Default
See theDefault companion object
trait Default[+A]

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 just Default[A] to ensure correct type inference and dependency resolution during ZLayer derivation.

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Type members

Types

type E
type R

Value members

Abstract methods

def layer: ZLayer[R, E, A]