diff options
Diffstat (limited to 'kamon-core/src/main/scala/test/PingPong.scala')
-rw-r--r-- | kamon-core/src/main/scala/test/PingPong.scala | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/kamon-core/src/main/scala/test/PingPong.scala b/kamon-core/src/main/scala/test/PingPong.scala deleted file mode 100644 index f9d6869c..00000000 --- a/kamon-core/src/main/scala/test/PingPong.scala +++ /dev/null @@ -1,34 +0,0 @@ -package test - -import akka.actor.{Props, Actor, ActorSystem} - -object PingPong extends App { - - val as = ActorSystem("ping-pong") - - val pinger = as.actorOf(Props[Pinger]) - val ponger = as.actorOf(Props[Ponger]) - - pinger.tell(Pong, ponger) - - - Thread.sleep(30000) - as.shutdown() - - -} - -case object Ping -case object Pong - -class Pinger extends Actor { - def receive = { - case Pong => sender ! Ping - } -} - -class Ponger extends Actor { - def receive = { - case Ping => sender ! Pong - } -} |