The ScalaDoc says this about concurrentMap: \"Deprecated (Since version 2.10.0) Use scala.collection.concurrent.Map instead.\" Unfortunately, the rest of the Scala
scala.collection.concurrent.Map
Taken from this comment directly: https://stackoverflow.com/a/49689669/7082628
In 2018, apparently you can just do this:
import java.util.concurrent.ConcurrentHashMap val m: ConcurrentHashMap[String,MyClass] = new ConcurrentHashMap