rchain / rchain

Blockchain (smart contract) platform using CBC-Casper proof of stake + Rholang for concurrent execution.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Replace use of SyncVar with Ref (support scala 2.13)

tgrospic opened this issue · comments

Overview

In Scala 2.13 SyncVar is removed so we need to switch to alternative. Another reason is to use functional abstraction which is Ref[F, A] from cats library.

Solution

Replace objects defined as SyncVar with Ref concurrent mutable reference.
Each item should be in a separate PR.