summaryrefslogtreecommitdiff
path: root/src/library/scala/concurrent/ExecutionContext.scala
diff options
context:
space:
mode:
authorHeather Miller <heather.miller@epfl.ch>2012-08-07 18:36:36 +0200
committerHeather Miller <heather.miller@epfl.ch>2012-08-07 18:36:36 +0200
commitea81ab3314359c98986e6fac74c807fa1accdfb6 (patch)
treed39d7d549e765af105e1c0808808a8ea5d340037 /src/library/scala/concurrent/ExecutionContext.scala
parent505cc713ec4546c5f9be1065e5fa3f7065451b8f (diff)
downloadscala-ea81ab3314359c98986e6fac74c807fa1accdfb6.tar.gz
scala-ea81ab3314359c98986e6fac74c807fa1accdfb6.tar.bz2
scala-ea81ab3314359c98986e6fac74c807fa1accdfb6.zip
Added tests, removal of unnecessary methods, fixes prepare
Diffstat (limited to 'src/library/scala/concurrent/ExecutionContext.scala')
-rw-r--r--src/library/scala/concurrent/ExecutionContext.scala8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/library/scala/concurrent/ExecutionContext.scala b/src/library/scala/concurrent/ExecutionContext.scala
index ac462ac9d2..82c1cff4b1 100644
--- a/src/library/scala/concurrent/ExecutionContext.scala
+++ b/src/library/scala/concurrent/ExecutionContext.scala
@@ -28,12 +28,10 @@ trait ExecutionContext {
*/
def reportFailure(t: Throwable): Unit
- /** Prepares for the execution of callback `f`. Returns the prepared
- * execution context which should be used to schedule the execution
- * of the task associated with `f`.
+ /** Prepares for the execution of a task. Returns the prepared
+ * execution context.
*/
- def prepare[T, U](f: Try[T] => U): ExecutionContext =
- this
+ def prepare(): ExecutionContext = this
}