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 collect[B](pf: PartialFunction[A, B]): STM[Nothing, TArray[B]]

    Permalink
  8. final def fold[Z](acc: Z)(op: (Z, A) ⇒ Z): STM[Nothing, Z]

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

    Permalink

    Atomically folds TArray with STM function.

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

    Permalink

    Atomically performs side-effect for each item in array

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

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

    Permalink
    Definition Classes
    Any
  13. final def map[B](f: (A) ⇒ B): STM[Nothing, TArray[B]]

    Permalink

    Creates TArray of new TRefs, mapped with pure function.

  14. final def mapM[E, B](f: (A) ⇒ STM[E, B]): STM[E, TArray[B]]

    Permalink

    Creates TArray of new TRefs, mapped with transactional effect.

  15. def toString(): String

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

    Permalink

    Atomically updates all TRefs inside this array using pure function.

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

    Permalink

    Atomically updates all elements using transactional effect.

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

    Permalink

    Updates element in the array with given function.

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

    Permalink

    Atomically updates element in the array with given transactionall effect.

Inherited from AnyVal

Inherited from Any

Ungrouped