summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2015-02-24 10:35:34 +1000
committerJason Zaugg <jzaugg@gmail.com>2015-02-24 10:35:34 +1000
commit1a7f4ec0961ffcddd283d0c372443983a87833dc (patch)
tree2bd9e4bbffc7d9e01c30332440a4cf461720b4b9 /src
parent5601a5b908c3714679824186e4a9e6423544cb84 (diff)
parentad845ffc2347b289c9ad480de370b50aa4f91d9f (diff)
downloadscala-1a7f4ec0961ffcddd283d0c372443983a87833dc.tar.gz
scala-1a7f4ec0961ffcddd283d0c372443983a87833dc.tar.bz2
scala-1a7f4ec0961ffcddd283d0c372443983a87833dc.zip
Merge commit 'ad845ff' into merge/2.10.x-to-2.11.x-20150224
Conflicts: src/library/scala/concurrent/Promise.scala test/files/jvm/future-spec/PromiseTests.scala
Diffstat (limited to 'src')
-rw-r--r--src/library/scala/concurrent/Promise.scala5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/library/scala/concurrent/Promise.scala b/src/library/scala/concurrent/Promise.scala
index eb8044ed3b..0f4e98db57 100644
--- a/src/library/scala/concurrent/Promise.scala
+++ b/src/library/scala/concurrent/Promise.scala
@@ -66,10 +66,7 @@ trait Promise[T] {
*
* @return This promise
*/
- final def completeWith(other: Future[T]): this.type = {
- other onComplete { this complete _ }
- this
- }
+ final def completeWith(other: Future[T]): this.type = tryCompleteWith(other)
/** Attempts to complete this promise with the specified future, once that future is completed.
*