arrow-fx-stm / arrow.fx.stm / STM / newTVar

newTVar

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?

Arrow Org
<