I hereby claim:
- I am andreaskallberg on github.
- I am akallberg (https://keybase.io/akallberg) on keybase.
- I have a public key ASBKBm0-iOBs7LLxyd8Al5AQwo948N-3d-G4k1QAA0Sn5go
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>ak</groupId> | |
<artifactId>test-harness</artifactId> | |
<packaging>jar</packaging> | |
<version>1.0-SNAPSHOT</version> | |
<name>Test harness</name> | |
<properties> | |
<scala.version>2.9.2</scala.version> |
package org.foo.simple | |
import akka.actor.{ ActorSystem, Actor, Props } | |
case class Message(who: String) | |
class FirstActor extends Actor { | |
val second = context.actorOf(Props[SecondActor], name = "second") | |
def receive = { | |
case Message(who) => | |
println("First") | |
second ! Message(who) |