Patch

zio.ZEnvironment.Patch
See thePatch companion object
sealed trait Patch[-In, +Out]

A Patch[In, Out] describes an update that transforms a ZEnvironment[In] to a ZEnvironment[Out] as a data structure. This allows combining updates to different services in the environment in a compositional way.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Patch[In, Out]

Members list

Value members

Concrete methods

def apply(environment: ZEnvironment[In]): ZEnvironment[Out]

Applies an update to the environment to produce a new environment.

Applies an update to the environment to produce a new environment.

Attributes

def combine[Out2](that: Patch[Out, Out2]): Patch[In, Out2]

Combines two patches to produce a new patch that describes applying the updates from this patch and then the updates from the specified patch.

Combines two patches to produce a new patch that describes applying the updates from this patch and then the updates from the specified patch.

Attributes

Boolean flag indicating whether the patch is empty.

Boolean flag indicating whether the patch is empty.

Attributes