Class/Object

zio.stm

TArray

Related Docs: object TArray | package stm

Permalink

final class TArray[A] extends AnyVal

Wraps array of TRef and adds methods for convenience. Caution: most of methods are not stack-safe.

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

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 apply(index: Int): STM[Nothing, A]

    Permalink

    Extracts value from ref in array.

  5. val array: Array[TRef[A]]

    Permalink
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. final def fold[Z](acc: Z)(op: (Z, A) ⇒ Z): STM[Nothing, Z]

    Permalink

    Atomically folds TArray with pure function.

  8. final def foldM[E, Z](acc: Z)(op: (Z, A) ⇒ STM[E, Z]): STM[E, Z]

    Permalink

    Atomically folds TArray with STM function.

  9. final def foreach[E](f: (A) ⇒ STM[E, Unit]): STM[E, Unit]

    Permalink

    Atomically performs side-effect for each item in array

  10. def getClass(): Class[_ <: AnyVal]

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

    Permalink
    Definition Classes
    Any
  12. def toString(): String

    Permalink
    Definition Classes
    Any
  13. final def transform(f: (A) ⇒ A): STM[Nothing, Unit]

    Permalink

    Atomically updates all TRefs inside this array using pure function.

  14. final def transformM[E](f: (A) ⇒ STM[E, A]): STM[E, Unit]

    Permalink

    Atomically updates all elements using transactional effect.

  15. final def update(index: Int, fn: (A) ⇒ A): STM[Nothing, A]

    Permalink

    Updates element in the array with given function.

  16. final def updateM[E](index: Int, fn: (A) ⇒ STM[E, A]): STM[E, A]

    Permalink

    Atomically updates element in the array with given transactional effect.

Inherited from AnyVal

Inherited from Any

Ungrouped