From 3c3c84d4d8e99395a5e4976b3250633cec3b3f36 Mon Sep 17 00:00:00 2001 From: Viktor Klang Date: Thu, 30 Aug 2012 12:03:09 +0200 Subject: [PATCH] Adding migration notes around the removal of Props(ActorContext => Actor.Receive) --- akka-docs/project/migration-guide-2.0.x-2.1.x.rst | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/akka-docs/project/migration-guide-2.0.x-2.1.x.rst b/akka-docs/project/migration-guide-2.0.x-2.1.x.rst index 772e5ea784..852ab423ee 100644 --- a/akka-docs/project/migration-guide-2.0.x-2.1.x.rst +++ b/akka-docs/project/migration-guide-2.0.x-2.1.x.rst @@ -201,7 +201,18 @@ v2.0 Java:: v2.1 Java:: - ActorRef router2 = system.actorOf(new Props().withRouter(RoundRobinRouter.create(routees))); + ActorRef router2 = system.actorOf(new Props().withRouter(RoundRobinRouter.create(routees))); + +Props: Function-based creation +============================== + +v2.0 Scala:: + + Props(context => { case someMessage => context.sender ! someMessage }) + +v2.1 Scala:: + + Props(new Actor { def receive = { case someMessage => sender ! someMessage } }) Failing Send ============