ZManagedVersionSpecific

zio.managed.ZManagedVersionSpecific
trait ZManagedVersionSpecific[-R, +E, +A]

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class ZManaged[R, E, A]
Self type
ZManaged[R, E, A]

Members list

Value members

Concrete methods

inline def provide[E1 >: E](inline layer: ZLayer[_, E1, _]*): ZManaged[Any, E1, A]

Automatically assembles a layer for the ZManaged effect, which translates it to another level.

Automatically assembles a layer for the ZManaged effect, which translates it to another level.

Attributes

Splits the environment into two parts, assembling one part using the specified layer and leaving the remainder R0.

Splits the environment into two parts, assembling one part using the specified layer and leaving the remainder R0.

val clockLayer: ZLayer[Any, Nothing, Clock] = ???

val managed: ZIO[Clock with Random, Nothing, Unit] = ???

val managed2 = managed.provideSome[Random](clockLayer)

Attributes