diff options
author | aleksandar <aleksandar@aleksandar-Latitude-E6500.(none)> | 2012-04-12 20:04:57 +0200 |
---|---|---|
committer | aleksandar <aleksandar@aleksandar-Latitude-E6500.(none)> | 2012-04-12 20:04:57 +0200 |
commit | c7a71c2d5c5afbb3dc047bca20c4b8c72e5c94c9 (patch) | |
tree | e3ba24a89c59b4178073c0b4c482b9af84307e13 /src/library/scala/concurrent/ExecutionContext.scala | |
parent | af71b10083ed8f91b9735e363651a64149a5ca89 (diff) | |
download | scala-c7a71c2d5c5afbb3dc047bca20c4b8c72e5c94c9.tar.gz scala-c7a71c2d5c5afbb3dc047bca20c4b8c72e5c94c9.tar.bz2 scala-c7a71c2d5c5afbb3dc047bca20c4b8c72e5c94c9.zip |
Making changes in the scala.concurrent package.
Diffstat (limited to 'src/library/scala/concurrent/ExecutionContext.scala')
-rw-r--r-- | src/library/scala/concurrent/ExecutionContext.scala | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/src/library/scala/concurrent/ExecutionContext.scala b/src/library/scala/concurrent/ExecutionContext.scala index e1d4276396..3f62f58bf8 100644 --- a/src/library/scala/concurrent/ExecutionContext.scala +++ b/src/library/scala/concurrent/ExecutionContext.scala @@ -20,19 +20,22 @@ import collection._ trait ExecutionContext { - + + /** Runs a block of code on this execution context. + */ def execute(runnable: Runnable): Unit - - def execute[U](body: () => U): Unit - + + /** Used internally by the framework - blocks execution for at most `atMost` time while waiting + * for an `awaitable` object to become ready. + * + * Clients should use `scala.concurrent.blocking` instead. + */ def internalBlockingCall[T](awaitable: Awaitable[T], atMost: Duration): T + /** Reports that an asynchronous computation failed. + */ def reportFailure(t: Throwable): Unit - - /* implementations follow */ - - private implicit val executionContext = this - + } |