ZLayerInvariantOps

zio.ZLayer$.ZLayerInvariantOps
final implicit class ZLayerInvariantOps[RIn, E, ROut](self: ZLayer[RIn, E, ROut]) extends AnyVal

Attributes

Graph
Supertypes
class AnyVal
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

def passthrough(implicit in: Tag[RIn], out: Tag[ROut], trace: Trace): ZLayer[RIn, E, RIn & ROut]

Returns a new layer that produces the outputs of this layer but also passes through the inputs.

Returns a new layer that produces the outputs of this layer but also passes through the inputs.

Attributes

def project[ROut2 : Tag](f: ROut => ROut2)(implicit evidence$293: Tag[ROut2], tag: Tag[ROut], trace: Trace): ZLayer[RIn, E, ROut2]

Projects out part of one of the services output by this layer using the specified function.

Projects out part of one of the services output by this layer using the specified function.

Attributes

def reloadableAuto(schedule: Schedule[RIn, Any, Any])(implicit tagOut: Tag[ROut], trace: Trace): ZLayer[RIn, E, Reloadable[ROut]]

Returns a layer that produces a reloadable version of this service.

Returns a layer that produces a reloadable version of this service.

Attributes

def reloadableAutoFromConfig[RIn2](scheduleFromConfig: ZEnvironment[RIn2] => Schedule[RIn & RIn2, Any, Any])(implicit tagOut: Tag[ROut], trace: Trace): ZLayer[RIn & RIn2, E, Reloadable[ROut]]

Returns a layer that produces a reloadable version of this service, where the reloading schedule is derived from the layer input.

Returns a layer that produces a reloadable version of this service, where the reloading schedule is derived from the layer input.

Attributes

def reloadableManual(implicit tagOut: Tag[ROut], trace: Trace): ZLayer[RIn, E, Reloadable[ROut]]

Returns a layer that produces a reloadable version of this service.

Returns a layer that produces a reloadable version of this service.

Attributes