Packages

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
    Definition Classes
    Any
  2. final def ##(): Int
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  4. final def apply(index: Int): STM[Nothing, A]

    Extracts value from ref in array.

  5. val array: Array[TRef[A]]
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. final def fold[Z](acc: Z)(op: (Z, A) ⇒ Z): STM[Nothing, Z]

    Atomically folds TArray with pure function.

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

    Atomically folds TArray with STM function.

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

    Atomically performs side-effect for each item in array

  10. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. def toString(): String
    Definition Classes
    Any
  13. final def transform(f: (A) ⇒ A): STM[Nothing, Unit]

    Atomically updates all TRefs inside this array using pure function.

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

    Atomically updates all elements using transactional effect.

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

    Updates element in the array with given function.

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

    Atomically updates element in the array with given transactional effect.

Inherited from AnyVal

Inherited from Any

Ungrouped