Returns a string representation of the transactional value in this instance for debugging convenience.
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.
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.
Returns an instance that provides transactional set functionality without requiring that operations be performed inside the static scope of an atomic block.
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 fromTSet
toSet
if the current scope is part of an atomic block (seeTSet.asSet
).The elements (with type
A
) must be immutable, or at least not modified while they are in the set. TheTSet
implementation assumes that it can safely perform equality and hash checks outside a transaction without affecting atomicity.