zio.Ref
See theRef companion class
object Ref extends Serializable
Attributes
Members list
Type members
Classlikes
abstract class Synchronized[A] extends Ref[A]
A Ref.Synchronized
is a purely functional description of a mutable reference. The fundamental operations of a Ref.Synchronized
are set
and get
. set
sets the reference to a new value. get
gets the current value of the reference.
A Ref.Synchronized
is a purely functional description of a mutable reference. The fundamental operations of a Ref.Synchronized
are set
and get
. set
sets the reference to a new value. get
gets the current value of the reference.
Unlike an ordinary Ref
, a Ref.Synchronized
allows performing effects within update operations, at some cost to performance. Writes will semantically block other writers, while multiple readers can read simultaneously.
Attributes
- Companion
- object
- Supertypes
object Synchronized
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Synchronized.type
In this article