Packages

c

zio.ZRef

UnifiedSyntax

implicit final class UnifiedSyntax[+E, A] extends AnyVal

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. UnifiedSyntax
  2. AnyVal
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new UnifiedSyntax(self: ERef[E, A])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##(): Int
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def getAndSet(a: A): IO[E, A]

    Atomically writes the specified value to the ZRef, returning the value immediately before modification.

  6. def getAndUpdate(f: (A) ⇒ A): IO[E, A]

    Atomically modifies the ZRef with the specified function, returning the value immediately before modification.

  7. def getAndUpdateSome(pf: PartialFunction[A, A]): IO[E, A]

    Atomically modifies the ZRef with the specified partial function, returning the value immediately before modification.

    Atomically modifies the ZRef with the specified partial function, returning the value immediately before modification. If the function is undefined on the current value it doesn't change it.

  8. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  9. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  10. def modify[B](f: (A) ⇒ (B, A)): IO[E, B]

    Atomically modifies the ZRef with the specified function, which computes a return value for the modification.

    Atomically modifies the ZRef with the specified function, which computes a return value for the modification. This is a more powerful version of update.

  11. def modifySome[B](default: B)(pf: PartialFunction[A, (B, A)]): IO[E, B]

    Atomically modifies the ZRef with the specified partial function, which computes a return value for the modification if the function is defined on the current value otherwise it returns a default value.

    Atomically modifies the ZRef with the specified partial function, which computes a return value for the modification if the function is defined on the current value otherwise it returns a default value. This is a more powerful version of updateSome.

  12. def toString(): String
    Definition Classes
    Any
  13. def update(f: (A) ⇒ A): IO[E, Unit]

    Atomically modifies the ZRef with the specified function.

  14. def updateAndGet(f: (A) ⇒ A): IO[E, A]

    Atomically modifies the ZRef with the specified function and returns the updated value.

  15. def updateSome(pf: PartialFunction[A, A]): IO[E, Unit]

    Atomically modifies the ZRef with the specified partial function.

    Atomically modifies the ZRef with the specified partial function. If the function is undefined on the current value it doesn't change it.

  16. def updateSomeAndGet(pf: PartialFunction[A, A]): IO[E, A]

    Atomically modifies the ZRef with the specified partial function.

    Atomically modifies the ZRef with the specified partial function. If the function is undefined on the current value it returns the old value without changing it.

Inherited from AnyVal

Inherited from Any

Ungrouped