July 23, 2008

actors must exeunt, not exit

Just found out, while writing unit tests, that the exit method on Actor is for use only within the actor, not externally. That is, a unit test cleanup script can't just call

myActor.exit

but instead needs to send a message to the actor and let it exit from within:

case Stop => exit

No comments: