A transactional set implementation that requires that all of its set-like
operations be called from inside an atomic block. Rather than extending
Set
, an implicit conversion is provided from TSet
to Set
if the
current scope is part of an atomic block (see TSet.asSet
).
A transactional set implementation that requires that all of its set-like
operations be called from inside an atomic block. Rather than extending
Set
, an implicit conversion is provided from TSet
to Set
if the
current scope is part of an atomic block (see TSet.asSet
).
The elements (with type A
) must be immutable, or at least not modified
while they are in the set. The TSet
implementation assumes that it can
safely perform equality and hash checks outside a transaction without
affecting atomicity.
- Authors
Nathan Bronson
- Companion
- object
Value members
Abstract methods
Returns an instance that provides transactional set functionality without requiring that operations be performed inside the static scope of an atomic block.
Returns an instance that provides transactional set functionality without requiring that operations be performed inside the static scope of an atomic block.
Concrete methods
Deprecated methods
Inherited methods
Returns a string representation of the transactional value in this
instance for debugging convenience. The Ref
reads (and writes)
performed while constructing the result will be discarded before
returning. This method works fine outside a transaction.
Returns a string representation of the transactional value in this
instance for debugging convenience. The Ref
reads (and writes)
performed while constructing the result will be discarded before
returning. This method works fine outside a transaction.
If this method is called from within a transaction that is already
doomed (status Txn.Rolledback
), a string describing the reason
for the outer transaction's rollback will be returned.
- Inherited from
- TxnDebuggable
Returns some value that is suitable for examination in a debugger,
or returns a Txn.RollbackCause
if called from inside a doomed atomic
block.
Returns some value that is suitable for examination in a debugger,
or returns a Txn.RollbackCause
if called from inside a doomed atomic
block.
- Inherited from
- TxnDebuggable