ActorSystemRegisterOnTermination Method |
Registers a block of code (callback) to run after ActorSystem.shutdown has been issued and all actors in this actor system have been stopped. Multiple code blocks may be registered by calling this method multiple times.
The callbacks will be run sequentially in reverse order of registration, i.e. last registration is run first.
Namespace: Akka.Actor
Exception | Condition |
---|---|
Exception | This exception is thrown if the system has already shut down or if shutdown has been initiated. |