summaryrefslogtreecommitdiff
path: root/test/files/jvm/daemon-actor-termination.scala
diff options
context:
space:
mode:
authorPhilipp Haller <hallerp@gmail.com>2009-09-24 18:28:17 +0000
committerPhilipp Haller <hallerp@gmail.com>2009-09-24 18:28:17 +0000
commit92fc7b37b01bc871966a49524197c1cbbeec8988 (patch)
tree7fad3d6cff9bf825e7018d26407413988c9a04f4 /test/files/jvm/daemon-actor-termination.scala
parent6fea2488af12d942c1cf7ba781d2f60fe6ddc9c0 (diff)
downloadscala-92fc7b37b01bc871966a49524197c1cbbeec8988.tar.gz
scala-92fc7b37b01bc871966a49524197c1cbbeec8988.tar.bz2
scala-92fc7b37b01bc871966a49524197c1cbbeec8988.zip
Introduced actors package object to deprecate a...
Introduced actors package object to deprecate a number of classes. Made ForkJoinScheduler more configurable and let it read ThreadPoolConfig. Clean-ups in TerminationMonitor and ActorGC. Removed DefaultExecutorScheduler. Made DelegatingScheduler and ExecutorScheduler private. Deprecated MessageQueue and MessageQueueElement, so that we can later make them private. Deprecated a number of methods in IScheduler. Tightened access modifiers in Reactor.
Diffstat (limited to 'test/files/jvm/daemon-actor-termination.scala')
-rw-r--r--test/files/jvm/daemon-actor-termination.scala11
1 files changed, 1 insertions, 10 deletions
diff --git a/test/files/jvm/daemon-actor-termination.scala b/test/files/jvm/daemon-actor-termination.scala
index 7707ea8d4d..8e64749b1c 100644
--- a/test/files/jvm/daemon-actor-termination.scala
+++ b/test/files/jvm/daemon-actor-termination.scala
@@ -1,16 +1,7 @@
-import scala.actors.Actor
-import scala.actors.scheduler.DefaultExecutorScheduler
+import scala.actors.{Actor, DaemonActor}
/* Test that a daemon Actor that hasn't finished does not prevent termination */
-
-trait DaemonActor extends Actor {
- override def scheduler =
- Test.daemonSched
-}
-
object Test {
- val daemonSched =
- new DefaultExecutorScheduler(true)
class MyDaemon extends DaemonActor {
def act() {