Class

zio.ZRefM

UnifiedSyntax

Related Doc: package ZRefM

Permalink

implicit final class UnifiedSyntax[-R, +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: ZRefM[R, R, E, E, A, A])

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def getAndSet(a: A): ZIO[R, E, A]

    Permalink

    Writes a new value to the RefM, returning the value immediately before modification.

  6. def getAndUpdate[R1 <: R, E1 >: E](f: (A) ⇒ ZIO[R1, E1, A]): ZIO[R1, E1, A]

    Permalink

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

  7. def getAndUpdateSome[R1 <: R, E1 >: E](pf: PartialFunction[A, ZIO[R1, E1, A]]): ZIO[R1, E1, A]

    Permalink

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

    Atomically modifies the RefM 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]

    Permalink
    Definition Classes
    AnyVal → Any
  9. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  10. def modify[R1 <: R, E1 >: E, B](f: (A) ⇒ ZIO[R1, E1, (B, A)]): ZIO[R1, E1, B]

    Permalink

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

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

    Annotations
    @silent( "unreachable code" )
  11. def modifySome[R1 <: R, E1 >: E, B](default: B)(pf: PartialFunction[A, ZIO[R1, E1, (B, A)]]): ZIO[R1, E1, B]

    Permalink

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

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

  12. def toString(): String

    Permalink
    Definition Classes
    Any
  13. def update[R1 <: R, E1 >: E](f: (A) ⇒ ZIO[R1, E1, A]): ZIO[R1, E1, Unit]

    Permalink

    Atomically modifies the RefM with the specified function.

  14. def updateAndGet[R1 <: R, E1 >: E](f: (A) ⇒ ZIO[R1, E1, A]): ZIO[R1, E1, A]

    Permalink

    Atomically modifies the RefM with the specified function, returning the value immediately after modification.

  15. def updateSome[R1 <: R, E1 >: E](pf: PartialFunction[A, ZIO[R1, E1, A]]): ZIO[R1, E1, Unit]

    Permalink

    Atomically modifies the RefM with the specified partial function.

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

  16. def updateSomeAndGet[R1 <: R, E1 >: E](pf: PartialFunction[A, ZIO[R1, E1, A]]): ZIO[R1, E1, A]

    Permalink

    Atomically modifies the RefM with the specified partial function.

    Atomically modifies the RefM 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