object STM
- Alphabetic
- By Inheritance
- STM
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
final
def
atomically[E, A](stm: STM[E, A]): IO[E, A]
Atomically performs a batch of operations in a single transaction.
-
final
def
check(p: Boolean): STM[Nothing, Unit]
Checks the condition, and if it's true, returns unit, otherwise, retries.
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
collectAll[E, A](i: Iterable[STM[E, A]]): STM[E, List[A]]
Collects all the transactional effects in a list, returning a single transactional effect that produces a list of values.
-
final
def
die(t: Throwable): STM[Nothing, Nothing]
Kills the fiber running the effect.
-
final
def
dieMessage(m: String): STM[Nothing, Nothing]
Kills the fiber running the effect with a
RuntimeException
that contains the specified message. -
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
fail[E](e: E): STM[E, Nothing]
Returns a value that models failure in the transaction.
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
foreach[E, A, B](as: Iterable[A])(f: (A) ⇒ STM[E, B]): STM[E, List[B]]
Applies the function
f
to each element of theIterable[A]
and returns a transactional effect that produces a newList[B]
. -
final
def
fromEither[E, A](e: ⇒ Either[E, A]): STM[E, A]
Creates an STM effect from an
Either
value. -
final
def
fromTry[A](a: ⇒ Try[A]): STM[Throwable, A]
Creates an STM effect from a
Try
value. -
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
partial[A](a: ⇒ A): STM[Throwable, A]
Creates an
STM
value from a partial (but pure) function. -
final
val
retry: STM[Nothing, Nothing]
Abort and retry the whole transaction when any of the underlying transactional variables have changed.
-
final
def
succeed[A](a: A): STM[Nothing, A]
Returns an
STM
effect that succeeds with the specified value. -
final
def
suspend[E, A](stm: ⇒ STM[E, A]): STM[E, A]
Suspends creation of the specified transaction lazily.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
val
unit: STM[Nothing, Unit]
Returns an
STM
effect that succeeds withUnit
. -
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()