summaryrefslogtreecommitdiff
path: root/src/library/scala/concurrent/ThreadPoolRunner.scala
diff options
context:
space:
mode:
authorphaller <hallerp@gmail.com>2012-07-18 01:31:08 +0200
committerphaller <hallerp@gmail.com>2012-07-18 01:43:04 +0200
commit1c2efb36c2154f4f3480e674b87c57042be65d05 (patch)
tree7fdea8b39097e58929b9d4e40fbef9faeaa60f71 /src/library/scala/concurrent/ThreadPoolRunner.scala
parent4f07a12b3f4ce1595d4976123e5cfe34e186d4ba (diff)
downloadscala-1c2efb36c2154f4f3480e674b87c57042be65d05.tar.gz
scala-1c2efb36c2154f4f3480e674b87c57042be65d05.tar.bz2
scala-1c2efb36c2154f4f3480e674b87c57042be65d05.zip
SI-6095, SI-6098 - clean up public API, add deprecations
Remove Scheduler, Cancellable, and Task trait. Hide impl.Promise object. Deprecate managedBlock methods in TaskRunners. Remove duplicate toBoxed method and pointless renaming import. Remove duplicate import of CanBuildFrom and Builder in Future. Organize imports in impl.Promise. Review by @axel22 and @heathermiller
Diffstat (limited to 'src/library/scala/concurrent/ThreadPoolRunner.scala')
-rw-r--r--src/library/scala/concurrent/ThreadPoolRunner.scala3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/library/scala/concurrent/ThreadPoolRunner.scala b/src/library/scala/concurrent/ThreadPoolRunner.scala
index fd6882348a..594555d49b 100644
--- a/src/library/scala/concurrent/ThreadPoolRunner.scala
+++ b/src/library/scala/concurrent/ThreadPoolRunner.scala
@@ -16,7 +16,7 @@ import language.implicitConversions
*
* @author Philipp Haller
*/
-@deprecated("Use `ExecutionContext`s instead.", "2.10.0")
+@deprecated("Use `ExecutionContext` instead.", "2.10.0")
trait ThreadPoolRunner extends FutureTaskRunner {
type Task[T] = Callable[T] with Runnable
@@ -43,6 +43,7 @@ trait ThreadPoolRunner extends FutureTaskRunner {
executor execute task
}
+ @deprecated("Use `blocking` instead.", "2.10.0")
def managedBlock(blocker: ManagedBlocker) {
blocker.block()
}