We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The concurrent.Map trait should override getOrElseUpdate as follows:
concurrent.Map
getOrElseUpdate
override def getOrElseUpdate(key: A, op: => B): B = get(key) match { case Some(v) => v case None => val v = op putIfAbsent(key, v).getOrElse(v) }
This is a continuation of #7943, where the more complete discussion lives.
The text was updated successfully, but these errors were encountered:
Imported From: https://issues.scala-lang.org/browse/SI-9147?orig=1 Reporter: @axel22 Affected Versions: 2.11.4
Sorry, something went wrong.
@adriaanm said: scala/scala#4323
axel22
No branches or pull requests
The
concurrent.Map
trait should overridegetOrElseUpdate
as follows:This is a continuation of #7943, where the more complete discussion lives.
The text was updated successfully, but these errors were encountered: