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 map functionality without requiring that operations be performed inside the static scope of an atomic block.
A transactional map implementation that requires that all of its map-like operations be called from inside an atomic block. Rather than extending
Map, an implicit conversion is provided fromTMaptoMapif the current scope is part of an atomic block (seeTMap.asMap).The keys (with type
A) must be immutable, or at least not modified while they are in the map. TheTMapimplementation assumes that it can safely perform key equality and hash checks outside a transaction without affecting atomicity.