diff options
-rw-r--r-- | src/library/scala/concurrent/SyncVar.scala | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/library/scala/concurrent/SyncVar.scala b/src/library/scala/concurrent/SyncVar.scala index d22471ac0f..76d21c3dbf 100644 --- a/src/library/scala/concurrent/SyncVar.scala +++ b/src/library/scala/concurrent/SyncVar.scala @@ -79,7 +79,8 @@ class SyncVar[A] { // 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 potentionally error-prone", "2.10.0") - private[scala] def set(x: A): Unit = setVal(x) + // NOTE: Used by SBT 0.13.0-M2 and below + def set(x: A): Unit = setVal(x) /** Places a value in the SyncVar. If the SyncVar already has a stored value, * it waits until another thread takes it */ @@ -98,7 +99,8 @@ class SyncVar[A] { // 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 potentionally error-prone", "2.10.0") - private[scala] def unset(): Unit = synchronized { + // NOTE: Used by SBT 0.13.0-M2 and below + def unset(): Unit = synchronized { isDefined = false value = None notifyAll() |