summaryrefslogtreecommitdiff
path: root/src/library/scala/concurrent/ExecutionContext.scala
diff options
context:
space:
mode:
authorphaller <hallerp@gmail.com>2012-05-17 00:20:45 +0200
committerphaller <hallerp@gmail.com>2012-05-17 00:20:45 +0200
commit2a36246342c17044bf5aafbf71fe1f2147ffe60a (patch)
tree68ae9d33231ffc7d3699e9ac51d6c2a759bc73c8 /src/library/scala/concurrent/ExecutionContext.scala
parent9fe251e16b93d4bdc8a496f3edce90ef2e207ee8 (diff)
downloadscala-2a36246342c17044bf5aafbf71fe1f2147ffe60a.tar.gz
scala-2a36246342c17044bf5aafbf71fe1f2147ffe60a.tar.bz2
scala-2a36246342c17044bf5aafbf71fe1f2147ffe60a.zip
SIP-14: clean ups and fixes
Diffstat (limited to 'src/library/scala/concurrent/ExecutionContext.scala')
-rw-r--r--src/library/scala/concurrent/ExecutionContext.scala6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/library/scala/concurrent/ExecutionContext.scala b/src/library/scala/concurrent/ExecutionContext.scala
index d2a2d5e8a8..436a17a33b 100644
--- a/src/library/scala/concurrent/ExecutionContext.scala
+++ b/src/library/scala/concurrent/ExecutionContext.scala
@@ -47,11 +47,13 @@ object ExecutionContext {
/** Creates an `ExecutionContext` from the given `ExecutorService`.
*/
- def fromExecutorService(e: ExecutorService, reporter: Throwable => Unit = defaultReporter): ExecutionContext with Executor = new impl.ExecutionContextImpl(e, reporter)
+ def fromExecutorService(e: ExecutorService, reporter: Throwable => Unit = defaultReporter): ExecutionContext with ExecutorService =
+ impl.ExecutionContextImpl.fromExecutorService(e, reporter)
/** Creates an `ExecutionContext` from the given `Executor`.
*/
- def fromExecutor(e: Executor, reporter: Throwable => Unit = defaultReporter): ExecutionContext with Executor = new impl.ExecutionContextImpl(e, reporter)
+ def fromExecutor(e: Executor, reporter: Throwable => Unit = defaultReporter): ExecutionContext with Executor =
+ impl.ExecutionContextImpl.fromExecutor(e, reporter)
def defaultReporter: Throwable => Unit = {
// re-throwing `Error`s here causes an exception handling test to fail.