diff options
Diffstat (limited to 'src/library/scala/parallel/Future.scala')
-rw-r--r-- | src/library/scala/parallel/Future.scala | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/library/scala/parallel/Future.scala b/src/library/scala/parallel/Future.scala index 29faa06148..af06852b32 100644 --- a/src/library/scala/parallel/Future.scala +++ b/src/library/scala/parallel/Future.scala @@ -1,22 +1,24 @@ -package scala.parallel - - - - - +/* __ *\ +** ________ ___ / / ___ Scala API ** +** / __/ __// _ | / / / _ | (c) 2005-2011, LAMP/EPFL ** +** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ ** +** /____/\___/_/ |_/____/_/ | | ** +** |/ ** +\* */ +package scala.parallel -/** A future is a function without parameters that will block the caller if the - * parallel computation associated with the function is not completed. +/** A future is a function without parameters that will block the caller if + * the parallel computation associated with the function is not completed. * * @since 2.9 */ trait Future[@specialized +R] extends (() => R) { - /** Returns a result once the parallel computation completes. If the computation - * produced an exception, an exception is forwarded. + /** Returns a result once the parallel computation completes. If the + * computation produced an exception, an exception is forwarded. * - * '''Note:''' creating a circular dependency between futures by calling this method will - * result in a deadlock. + * '''Note:''' creating a circular dependency between futures by calling + * this method will result in a deadlock. * * @tparam R the type of the result * @return the result @@ -31,5 +33,3 @@ trait Future[@specialized +R] extends (() => R) { def isDone(): Boolean } - - |