diff options
author | Lukas Rytz <lukas.rytz@gmail.com> | 2016-11-18 09:00:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-18 09:00:30 +0100 |
commit | 40f8df19ced57637a795c705080e528d82303248 (patch) | |
tree | d791ddfd964b8eea8dfd170f5b86dff9d0e66a49 /src/library/scala/concurrent/SyncVar.scala | |
parent | 4fe94a2ded7bf64b3d665e32f95978f5c0927805 (diff) | |
parent | fbcfba212fff76272c509c6781ea2a2897d84bff (diff) | |
download | scala-40f8df19ced57637a795c705080e528d82303248.tar.gz scala-40f8df19ced57637a795c705080e528d82303248.tar.bz2 scala-40f8df19ced57637a795c705080e528d82303248.zip |
Merge pull request #5481 from som-snytt/issue/10007-process
SI-10007 sys.process thread sync
Diffstat (limited to 'src/library/scala/concurrent/SyncVar.scala')
-rw-r--r-- | src/library/scala/concurrent/SyncVar.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/library/scala/concurrent/SyncVar.scala b/src/library/scala/concurrent/SyncVar.scala index 5fabf553bd..0e534a9b22 100644 --- a/src/library/scala/concurrent/SyncVar.scala +++ b/src/library/scala/concurrent/SyncVar.scala @@ -91,7 +91,7 @@ class SyncVar[A] { // [Heather] the reason why: it doesn't take into consideration // whether or not the SyncVar is already defined. So, set has been // deprecated in order to eventually be able to make "setting" private - @deprecated("use `put` instead, as `set` is potentially error-prone", "2.10.0") + @deprecated("use `put` to ensure a value cannot be overwritten without a corresponding `take`", "2.10.0") // NOTE: Used by SBT 0.13.0-M2 and below def set(x: A): Unit = setVal(x) @@ -111,7 +111,7 @@ class SyncVar[A] { // [Heather] the reason why: it doesn't take into consideration // whether or not the SyncVar is already defined. So, unset has been // deprecated in order to eventually be able to make "unsetting" private - @deprecated("use `take` instead, as `unset` is potentially error-prone", "2.10.0") + @deprecated("use `take` to ensure a value is never discarded", "2.10.0") // NOTE: Used by SBT 0.13.0-M2 and below def unset(): Unit = synchronized { isDefined = false |