Packages

c

zio.ZFiberRef

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. Protected

Instance Constructors

  1. new UnifiedSyntax(self: ZFiberRef[E, E, A, 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 sets the value associated with the current fiber and returns the old value.

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

    Atomically modifies the FiberRef with the specified function and returns the old value.

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

    Atomically modifies the FiberRef with the specified partial function and returns the old value.

    Atomically modifies the FiberRef with the specified partial function and returns the old value. 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 FiberRef with the specified function, which computes a return value for the modification.

    Atomically modifies the FiberRef 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 FiberRef with the specified partial 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 FiberRef with the specified partial 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
    Definition Classes
    Any
  13. def update(f: (A) => A): IO[E, Unit]

    Atomically modifies the FiberRef with the specified function.

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

    Atomically modifies the FiberRef with the specified function and returns the result.

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

    Atomically modifies the FiberRef with the specified partial function.

    Atomically modifies the FiberRef 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 FiberRef with the specified partial function.

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