Class

zio.ZFiberRef

UnifiedSyntax

Related Doc: package ZFiberRef

Permalink

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: ZFiberRef[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): IO[E, A]

    Permalink

    Atomically sets the value associated with the current fiber and returns the old value.

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

    Permalink

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

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

    Permalink

    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]

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

    Permalink
    Definition Classes
    Any
  10. def modify[B](f: (A) ⇒ (B, A)): IO[E, B]

    Permalink

    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]

    Permalink

    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

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

    Permalink

    Atomically modifies the FiberRef with the specified function.

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

    Permalink

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

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

    Permalink

    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]

    Permalink

    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