//arrow-fx-stm/arrow.fx.stm/TVar/Companion/new
common suspend fun <A> new(a: A): TVar<A>
Return a new TVar
More efficient than atomically { newVar(a) } because it skips creating a transaction.
atomically { newVar(a) }
Do you like Arrow?