summaryrefslogtreecommitdiff
path: root/src/library/scala/concurrent/Future.scala
diff options
context:
space:
mode:
authorViktor Klang <viktor.klang@gmail.com>2012-04-13 15:38:50 +0200
committerViktor Klang <viktor.klang@gmail.com>2012-04-13 15:38:50 +0200
commit7c049a15f6cb3992abc6debabe2b53b2097ffb8a (patch)
treed3fb6209c8c18fd9a840a0e9978344d4816af174 /src/library/scala/concurrent/Future.scala
parent225d205f83ceb7fc6f0af005f0085bf7ab493b38 (diff)
downloadscala-7c049a15f6cb3992abc6debabe2b53b2097ffb8a.tar.gz
scala-7c049a15f6cb3992abc6debabe2b53b2097ffb8a.tar.bz2
scala-7c049a15f6cb3992abc6debabe2b53b2097ffb8a.zip
Updating to latest version of Akka's DefaultPromise
Diffstat (limited to 'src/library/scala/concurrent/Future.scala')
-rw-r--r--src/library/scala/concurrent/Future.scala20
1 files changed, 9 insertions, 11 deletions
diff --git a/src/library/scala/concurrent/Future.scala b/src/library/scala/concurrent/Future.scala
index 1463dbcebf..16432f6aac 100644
--- a/src/library/scala/concurrent/Future.scala
+++ b/src/library/scala/concurrent/Future.scala
@@ -511,16 +511,15 @@ trait Future[+T] extends Awaitable[T] {
* Note: using this method yields nondeterministic dataflow programs.
*/
object Future {
-
- /** Starts an asynchronous computation and returns a `Future` object with the result of that computation.
- *
- * The result becomes available once the asynchronous computation is completed.
- *
- * @tparam T the type of the result
- * @param body the asychronous computation
- * @param execctx the execution context on which the future is run
- * @return the `Future` holding the result of the computation
- */
+ /** Starts an asynchronous computation and returns a `Future` object with the result of that computation.
+ *
+ * The result becomes available once the asynchronous computation is completed.
+ *
+ * @tparam T the type of the result
+ * @param body the asychronous computation
+ * @param execctx the execution context on which the future is run
+ * @return the `Future` holding the result of the computation
+ */
def apply[T](body: =>T)(implicit executor: ExecutionContext): Future[T] = impl.Future(body)
import scala.collection.mutable.Builder
@@ -614,4 +613,3 @@ object Future {
-