summaryrefslogtreecommitdiff
path: root/src/library/scala/concurrent/Promise.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/library/scala/concurrent/Promise.scala')
-rw-r--r--src/library/scala/concurrent/Promise.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/library/scala/concurrent/Promise.scala b/src/library/scala/concurrent/Promise.scala
index 43abe566de..e9b83cba73 100644
--- a/src/library/scala/concurrent/Promise.scala
+++ b/src/library/scala/concurrent/Promise.scala
@@ -34,8 +34,6 @@ trait Promise[T] {
*/
def future: Future[T]
- private def throwCompleted = throw new IllegalStateException("Promise already completed.")
-
/** Completes the promise with either an exception or a value.
*
* @param result Either the value or the exception to complete the promise with.
@@ -106,6 +104,8 @@ trait Promise[T] {
case _ => new ExecutionException(t)
}
+ private def throwCompleted = throw new IllegalStateException("Promise already completed.")
+
}