Checks for actors that have become garbage.
Checks for actors that have become garbage.
newActor is invoked whenever a new actor is started.
newActor is invoked whenever a new actor is started.
Registers a closure to be executed when the specified actor terminates.
Registers a closure to be executed when the specified actor terminates.
the actor
the closure to be registered
Prints some status information on currently managed actors.
Prints some status information on currently managed actors.
Registers that the specified actor has terminated.
Registers that the specified actor has terminated.
the actor that has terminated
ActorGC keeps track of the number of live actors being managed by a a scheduler so that it can shutdown when all of the actors it manages have either been explicitly terminated or garbage collected.
When an actor is started, it is registered with the ActorGC via the
newActor
method, and when an actor is knowingly terminated (e.g. act method finishes, exit explicitly called, an exception is thrown), the ActorGC is informed via theterminated
method.(Since version 2.11.0) Use the akka.actor package instead. For migration from the scala.actors package refer to the Actors Migration Guide.