arrow-fx-stm / arrow.fx.stm / STM / newTVar
open fun <A> newTVar(a: A): TVar<A>
open fun <A> newTVar(a: A):
TVar
<A>
Create a new TVar inside a transaction, because TVar.new is not possible inside STM transactions.
Do you like Arrow?