Attributes
Members list
Type members
Classlikes
Attributes
- Supertypes
-
class AnyValtrait Matchableclass Any
Attributes
- Supertypes
-
class AnyValtrait Matchableclass Any
Attributes
- Supertypes
-
class AnyValtrait Matchableclass Any
Attributes
- Supertypes
Attributes
- Supertypes
Attributes
- Supertypes
-
class AnyValtrait Matchableclass Any
Attributes
- Supertypes
-
class AnyValtrait Matchableclass Any
Attributes
- Supertypes
-
class AnyValtrait Matchableclass Any
Attributes
- Supertypes
Attributes
- Supertypes
Attributes
- Supertypes
-
class AnyValtrait Matchableclass Any
Inherited types
The names of the product elements
The names of the product elements
Attributes
- Inherited from:
- Mirror
The name of the type
The name of the type
Attributes
- Inherited from:
- Mirror
Value members
Concrete methods
Submerges the error case of an Either
into the STM
. The inverse operation of STM.either
.
Submerges the error case of an Either
into the STM
. The inverse operation of STM.either
.
Attributes
Treats the specified acquire
transaction as the acquisition of a resource. The acquire
transaction will be executed interruptibly. If it is a success and is committed the specified release
workflow will be executed uninterruptibly as soon as the use
workflow completes execution.
Treats the specified acquire
transaction as the acquisition of a resource. The acquire
transaction will be executed interruptibly. If it is a success and is committed the specified release
workflow will be executed uninterruptibly as soon as the use
workflow completes execution.
Attributes
Atomically performs a batch of operations in a single transaction.
Atomically performs a batch of operations in a single transaction.
Attributes
Creates an STM
value from a partial (but pure) function.
Creates an STM
value from a partial (but pure) function.
Attributes
Checks the condition, and if it's true, returns unit, otherwise, retries.
Checks the condition, and if it's true, returns unit, otherwise, retries.
Attributes
Evaluate each effect in the structure from left to right, collecting the the successful values and discarding the empty cases.
Evaluate each effect in the structure from left to right, collecting the the successful values and discarding the empty cases.
Attributes
Collects all the transactional effects in a collection, returning a single transactional effect that produces a collection of values.
Collects all the transactional effects in a collection, returning a single transactional effect that produces a collection of values.
Attributes
Collects all the transactional effects in a set, returning a single transactional effect that produces a set of values.
Collects all the transactional effects in a set, returning a single transactional effect that produces a set of values.
Attributes
Collects all the transactional effects, returning a single transactional effect that produces Unit
.
Collects all the transactional effects, returning a single transactional effect that produces Unit
.
Equivalent to collectAll(i).unit
, but without the cost of building the list of results.
Attributes
Collects the first element of the Iterable[A]
for which the effectual function f
returns Some
.
Collects the first element of the Iterable[A]
for which the effectual function f
returns Some
.
Attributes
Similar to Either.cond, evaluate the predicate, return the given A as success if predicate returns true, and the given E as error otherwise
Similar to Either.cond, evaluate the predicate, return the given A as success if predicate returns true, and the given E as error otherwise
Attributes
Kills the fiber running the effect.
Kills the fiber running the effect.
Attributes
Kills the fiber running the effect with a RuntimeException
that contains the specified message.
Kills the fiber running the effect with a RuntimeException
that contains the specified message.
Attributes
Returns a value modelled on provided exit status.
Returns a value modelled on provided exit status.
Attributes
Retrieves the environment inside an stm.
Retrieves the environment inside an stm.
Attributes
Accesses the environment of the transaction to perform a transaction.
Accesses the environment of the transaction to perform a transaction.
Attributes
Accesses the environment of the transaction to perform a transaction.
Accesses the environment of the transaction to perform a transaction.
Attributes
Determines whether any element of the Iterable[A]
satisfies the effectual predicate f
.
Determines whether any element of the Iterable[A]
satisfies the effectual predicate f
.
Attributes
Returns a value that models failure in the transaction.
Returns a value that models failure in the transaction.
Attributes
Filters the collection using the specified effectual predicate.
Filters the collection using the specified effectual predicate.
Attributes
Filters the set using the specified effectual predicate.
Filters the set using the specified effectual predicate.
Attributes
Filters the collection using the specified effectual predicate, removing all elements that satisfy the predicate.
Filters the collection using the specified effectual predicate, removing all elements that satisfy the predicate.
Attributes
Filters the set using the specified effectual predicate, removing all elements that satisfy the predicate.
Filters the set using the specified effectual predicate, removing all elements that satisfy the predicate.
Attributes
Returns an effect that first executes the outer effect, and then executes the inner effect, returning the value from the inner effect, and effectively flattening a nested effect.
Returns an effect that first executes the outer effect, and then executes the inner effect, returning the value from the inner effect, and effectively flattening a nested effect.
Attributes
Folds an Iterable[A] using an effectual function f, working sequentially from left to right.
Folds an Iterable[A] using an effectual function f, working sequentially from left to right.
Attributes
Folds an Iterable[A] using an effectual function f, working sequentially from right to left.
Folds an Iterable[A] using an effectual function f, working sequentially from right to left.
Attributes
Determines whether all elements of the Iterable[A]
satisfy the effectual predicate f
.
Determines whether all elements of the Iterable[A]
satisfy the effectual predicate f
.
Attributes
Applies the function f
to each element of the Collection[A]
and returns a transactional effect that produces a new Collection[B]
.
Applies the function f
to each element of the Collection[A]
and returns a transactional effect that produces a new Collection[B]
.
Attributes
Applies the function f
to each element of the Set[A]
and returns a transactional effect that produces a new Set[B]
.
Applies the function f
to each element of the Set[A]
and returns a transactional effect that produces a new Set[B]
.
Attributes
Applies the function f
to each element of the Iterable[A]
and returns a transactional effect that produces Unit
.
Applies the function f
to each element of the Iterable[A]
and returns a transactional effect that produces Unit
.
Equivalent to foreach(as)(f).unit
, but without the cost of building the list of results.
Attributes
Lifts an Either
into a STM
.
Lifts an Either
into a STM
.
Attributes
Lifts an Option
into a STM
.
Lifts an Option
into a STM
.
Attributes
Runs onTrue
if the result of b
is true
and onFalse
otherwise.
Runs onTrue
if the result of b
is true
and onFalse
otherwise.
Attributes
Interrupts the fiber running the effect with the specified fiber id.
Interrupts the fiber running the effect with the specified fiber id.
Attributes
Iterates with the specified transactional function. The moral equivalent of:
Iterates with the specified transactional function. The moral equivalent of:
var s = initial
while (cont(s)) {
s = body(s)
}
s
Attributes
Returns an effect with the value on the left part.
Returns an effect with the value on the left part.
Attributes
Loops with the specified transactional function, collecting the results into a list. The moral equivalent of:
Loops with the specified transactional function, collecting the results into a list. The moral equivalent of:
var s = initial
var as = List.empty[A]
while (cont(s)) {
as = body(s) :: as
s = inc(s)
}
as.reverse
Attributes
Loops with the specified transactional function purely for its transactional effects. The moral equivalent of:
Loops with the specified transactional function purely for its transactional effects. The moral equivalent of:
var s = initial
while (cont(s)) {
body(s)
s = inc(s)
}
Attributes
Merges an Iterable[ZSTM]
to a single ZSTM, working sequentially.
Merges an Iterable[ZSTM]
to a single ZSTM, working sequentially.
Attributes
Executes the specified workflow when this transaction is committed.
Executes the specified workflow when this transaction is committed.
Attributes
Feeds elements of type A
to a function f
that returns an effect. Collects all successes and failures in a tupled fashion.
Feeds elements of type A
to a function f
that returns an effect. Collects all successes and failures in a tupled fashion.
Attributes
Reduces an Iterable[ZSTM]
to a single ZSTM
, working sequentially.
Reduces an Iterable[ZSTM]
to a single ZSTM
, working sequentially.
Attributes
Replicates the given effect n times. If 0 or negative numbers are given, an empty Iterable
will return.
Replicates the given effect n times. If 0 or negative numbers are given, an empty Iterable
will return.
Attributes
Performs this transaction the specified number of times and collects the results.
Performs this transaction the specified number of times and collects the results.
Attributes
Performs this transaction the specified number of times, discarding the results.
Performs this transaction the specified number of times, discarding the results.
Attributes
Returns an effect with the value on the right part.
Returns an effect with the value on the right part.
Attributes
Accesses the specified service in the environment of the effect.
Accesses the specified service in the environment of the effect.
Attributes
Accesses the service corresponding to the specified key in the environment.
Accesses the service corresponding to the specified key in the environment.
Attributes
Effectfully accesses the specified service in the environment of the effect.
Effectfully accesses the specified service in the environment of the effect.
Attributes
Effectfully accesses the specified service in the environment of the effect.
Effectfully accesses the specified service in the environment of the effect.
Attributes
Returns an effect with the optional value.
Returns an effect with the optional value.
Attributes
Returns an STM
effect that succeeds with the specified value.
Returns an STM
effect that succeeds with the specified value.
Attributes
Suspends creation of the specified transaction lazily.
Suspends creation of the specified transaction lazily.
Attributes
The moral equivalent of if (!p) exp
The moral equivalent of if (!p) exp
Attributes
The moral equivalent of if (!p) exp
when p
has side-effects
The moral equivalent of if (!p) exp
when p
has side-effects
Attributes
Feeds elements of type A
to f
and accumulates all errors in error channel or successes in success channel.
Feeds elements of type A
to f
and accumulates all errors in error channel or successes in success channel.
This combinator is lossy meaning that if there are errors all successes will be lost. To retain all information please use partition.
Attributes
Feeds elements of type A
to f
and accumulates all errors in error channel or successes in success channel.
Feeds elements of type A
to f
and accumulates all errors in error channel or successes in success channel.
This combinator is lossy meaning that if there are errors all successes will be lost. To retain all information please use partition.
Attributes
Feeds elements of type A
to f
until it succeeds. Returns first success or the accumulation of all errors.
Feeds elements of type A
to f
until it succeeds. Returns first success or the accumulation of all errors.
Attributes
The moral equivalent of if (p) exp
The moral equivalent of if (p) exp
Attributes
Runs an effect when the supplied PartialFunction
matches for the given value, otherwise does nothing.
Runs an effect when the supplied PartialFunction
matches for the given value, otherwise does nothing.
Attributes
Runs an effect when the supplied PartialFunction
matches for the given effectful value, otherwise does nothing.
Runs an effect when the supplied PartialFunction
matches for the given effectful value, otherwise does nothing.
Attributes
Concrete fields
Returns the fiber id of the fiber committing the transaction.
Returns the fiber id of the fiber committing the transaction.
Attributes
Interrupts the fiber running the effect.
Interrupts the fiber running the effect.
Attributes
Returns an effect with the empty value.
Returns an effect with the empty value.
Attributes
Abort and retry the whole transaction when any of the underlying transactional variables have changed.
Abort and retry the whole transaction when any of the underlying transactional variables have changed.