Best practices for mixing in Scala concurrent.Map

后端 未结 5 2053
温柔的废话
温柔的废话 2021-02-01 03:37

The ScalaDoc says this about concurrentMap: \"Deprecated (Since version 2.10.0) Use scala.collection.concurrent.Map instead.\" Unfortunately, the rest of the Scala

5条回答
  •  既然无缘
    2021-02-01 03:44

    Unless you want to implement a concurrent mutable hash map yourself, you have to use scala.collection.concurrent.TrieMap.

提交回复
热议问题