newActor(() => refactored

This commit is contained in:
Viktor Klang 2010-05-08 15:59:11 +02:00
parent 57e46e2ecc
commit ae6eb54ee9
20 changed files with 53 additions and 53 deletions

View file

@ -87,7 +87,7 @@ class ActorPatternsTest extends junit.framework.TestCase with Suite with MustMat
@Test def testListener = {
val latch = new CountDownLatch(2)
val num = new AtomicInteger(0)
val i = newActor(() => new Actor with Listeners {
val i = actorOf(new Actor with Listeners {
def receive = listenerManagement orElse {
case "foo" => gossip("bar")
}