newTVar

open fun <A> newTVar(a: A): TVar<A>(source)

Create a new TVar inside a transaction, because TVar.new is not possible inside STM transactions.