ZState

zio.ZState
See theZState companion trait
object ZState

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
ZState.type

Members list

Value members

Concrete methods

def initial[S : Tag](s: => S)(implicit evidence$1: Tag[S], trace: Trace): ZLayer[Any, Nothing, ZState[S]]

A layer that allocates the initial state of a stateful workflow.

A layer that allocates the initial state of a stateful workflow.

Attributes

def initialPatch[State : Tag, Patch](state: => State, differ: => Differ[State, Patch])(implicit evidence$1: Tag[State], trace: Trace): ZLayer[Any, Nothing, ZState[State]]

A layer that allocates the initial state of a stateful workflow, using the specified patch type to combine updates to the state by different fibers in a compositional way.

A layer that allocates the initial state of a stateful workflow, using the specified patch type to combine updates to the state by different fibers in a compositional way.

Attributes