arrow-fx-stm / arrow.fx.stm / TVar / unsafeRead
suspend fun unsafeRead(): A
Read the value of a TVar. This has no consistency guarantees for subsequent reads and writes since it is outside of a stm transaction.
Much faster than atomically { v.read() }
because it avoids creating a transaction, it just reads the value.
Do you like Arrow?
✖