Permalink
Browse files

Merge pull request #1614 from phaller/issue/correct-promise-signature

SI-6661 - Remove obsolete implicit parameter of scala.concurrent.promise method
  • Loading branch information...
2 parents 49de222 + ed7bd01 commit 4de1a25c1c8db180269527976cb63bceee43d568 @adriaanm adriaanm committed Nov 16, 2012
Showing with 2 additions and 3 deletions.
  1. +2 −3 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.

0 comments on commit 4de1a25

Please sign in to comment.