From bad9c39e4eac614f2c3bafe176e70190bb14a75a Mon Sep 17 00:00:00 2001 From: phaller <hal...@gmail.com> Date: Tue, 13 Nov 2012 17:45:11 +0100 Subject: [PATCH] Remove obsolete implicit parameter of scala.concurrent.promise method --- src/library/scala/concurrent/package.scala | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/library/scala/concurrent/package.scala b/src/library/scala/concurrent/package.scala index f7c732b..3e849f1 100644 --- a/src/library/scala/concurrent/package.scala +++ b/src/library/scala/concurrent/package.scala @@ -29,13 +29,12 @@ package object concurrent { */ def future[T](body: =>T)(implicit execctx: ExecutionContext): Future[T] = Future[T](body) - /** Creates a promise object which can be completed with a value. + /** Creates a promise object which can be completed with a value or an exception. * * @tparam T the type of the value in the promise - * @param execctx the execution context on which the promise is created on * @return the newly created `Promise` object */ - def promise[T]()(implicit execctx: ExecutionContext): Promise[T] = Promise[T]() + def promise[T](): Promise[T] = Promise[T]() /** Used to designate a piece of code which potentially blocks, allowing the current [[BlockContext]] to adjust * the runtime's behavior. -- 1.7.10