Fixing ticket #450, lifeCycle = Permanent => boilerplate reduction

This commit is contained in:
Viktor Klang 2010-10-04 11:18:10 +02:00
parent 099820a258
commit 3efb427ca1
27 changed files with 103 additions and 112 deletions

View file

@ -98,7 +98,7 @@ class SchedulerSpec extends JUnitSuite {
val pingLatch = new CountDownLatch(6)
val actor = actorOf(new Actor {
self.lifeCycle = Some(LifeCycle(Permanent))
self.lifeCycle = Permanent
def receive = {
case Ping => pingLatch.countDown
@ -113,7 +113,7 @@ class SchedulerSpec extends JUnitSuite {
List(classOf[Exception])),
Supervise(
actor,
LifeCycle(Permanent))
Permanent)
:: Nil)).start
Scheduler.schedule(actor, Ping, 500, 500, TimeUnit.MILLISECONDS)