Attributes
Members list
Type members
Classlikes
Attributes
- Companion:
- trait
- Graph
- Supertypes
- Self type
- FunctionConstructor.type
A FunctionConstructor[Input]
knows how to construct a ZLayer
value from
a function of type Input
. This allows the type of the ZLayer
value
constructed to depend on Input
.
Attributes
- Graph
- Supertypes
- class AnyValtrait Matchableclass Any
Attributes
- Graph
- Supertypes
- class AnyValtrait Matchableclass Any
Attributes
- Graph
- Supertypes
- class AnyValtrait Matchableclass Any
Attributes
- Graph
- Supertypes
- class AnyValtrait Matchableclass Any
Inherited types
The names of the product elements
The name of the type
Value members
Concrete methods
Constructs a layer from an effectual resource.
Constructs a layer from an effectual resource.
Attributes
Gathers up the ZLayer inside of the given collection, and combines them into a single ZLayer containing an equivalent collection of results.
Gathers up the ZLayer inside of the given collection, and combines them into a single ZLayer containing an equivalent collection of results.
Attributes
Prints the specified message to the console for debugging purposes.
Prints the specified message to the console for debugging purposes.
Attributes
Constructs a layer that dies with the specified throwable.
Constructs a layer that dies with the specified throwable.
Attributes
Constructs a layer that passes along the specified environment as an output.
Constructs a layer that passes along the specified environment as an output.
Attributes
Constructs a layer that fails with the specified error.
Constructs a layer that fails with the specified error.
Attributes
Constructs a layer that fails with the specified cause.
Constructs a layer that fails with the specified cause.
Attributes
Applies the function f
to each element of the Collection[A]
and returns
the results in a new Collection[B]
.
Applies the function f
to each element of the Collection[A]
and returns
the results in a new Collection[B]
.
Attributes
Constructs a layer from the specified function.
Constructs a layer from the specified function.
Attributes
Constructs a layer from the specified effect.
Constructs a layer from the specified effect.
Attributes
Constructs a layer from the specified effect, which must return one or more services.
Constructs a layer from the specified effect, which must return one or more services.
Attributes
Constructs a layer that refails with the specified cause.
Constructs a layer that refails with the specified cause.
Attributes
Constructs a layer from the specified scoped effect.
Constructs a layer from the specified scoped effect.
Attributes
Constructs a layer from the specified scoped effect, which must return one or more services.
Constructs a layer from the specified scoped effect, which must return one or more services.
Attributes
Constructs a layer that accesses and returns the specified service from the environment.
Constructs a layer that accesses and returns the specified service from the environment.
Attributes
Constructs a layer from the specified value.
Constructs a layer from the specified value.
Attributes
Constructs a layer from the specified value, which must return one or more services.
Constructs a layer from the specified value, which must return one or more services.
Attributes
Lazily constructs a layer. This is useful to avoid infinite recursion when creating layers that refer to themselves.
Lazily constructs a layer. This is useful to avoid infinite recursion when creating layers that refer to themselves.
Attributes
Inherited methods
Derives a simple layer for a case class given as a type parameter.
Derives a simple layer for a case class given as a type parameter.
case class Car(engine: Engine, wheels: Wheels)
val derivedLayer: ZLayer[Engine & Wheels, Nothing, Car] = ZLayer.deriveLayer[Car]
// equivalent to:
val manualLayer: ZLayer[Engine & Wheels, Nothing, Car] =
ZLayer.fromFunction(Car(_, _))
Attributes
- Inherited from:
- ZLayerCompanionVersionSpecific
Automatically assembles a layer for the provided type.
Automatically assembles a layer for the provided type.
val layer = ZLayer.make[Car](carLayer, wheelsLayer, engineLayer)
Attributes
- Inherited from:
- ZLayerCompanionVersionSpecific
Automatically assembles a layer for the provided type R
,
leaving a remainder R0
.
Automatically assembles a layer for the provided type R
,
leaving a remainder R0
.
val carLayer: ZLayer[Engine with Wheels, Nothing, Car] = ???
val wheelsLayer: ZLayer[Any, Nothing, Wheels] = ???
val layer = ZLayer.makeSome[Engine, Car](carLayer, wheelsLayer)
Attributes
- Inherited from:
- ZLayerCompanionVersionSpecific