This is an excerpt from the Scala Cookbook (partially modified for the internet). This is Recipe 13.6, “How to stop Akka Actors.”Back to top
You want to stop one or more running Akka actors.Back to top
There are several ways to stop Akka actors. The most common ways are to call
system.stop(actorRef) at the
ActorSystem level or
context.stop(actorRef) from inside an actor.
There are other ways to stop an actor:Back to top