From 3f8f8632ccf87e4d2fbbe498f1770ff1b4031664 Mon Sep 17 00:00:00 2001 From: RayRoestenburg Date: Sat, 7 Jan 2012 16:53:44 +0100 Subject: [PATCH] Added docs to registerOnTermination, that you can add multiple code blocks --- akka-actor/src/main/scala/akka/actor/ActorSystem.scala | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/akka-actor/src/main/scala/akka/actor/ActorSystem.scala b/akka-actor/src/main/scala/akka/actor/ActorSystem.scala index 0e95325ec3..aafbe1f0e3 100644 --- a/akka-actor/src/main/scala/akka/actor/ActorSystem.scala +++ b/akka-actor/src/main/scala/akka/actor/ActorSystem.scala @@ -234,13 +234,15 @@ abstract class ActorSystem extends ActorRefFactory { /** * Register a block of code to run after all actors in this actor system have - * been stopped. + * been stopped. Multiple code blocks may be registered by calling this method multiple times; there is no + * guarantee that they will be executed in a particular order. */ def registerOnTermination[T](code: ⇒ T) /** * Register a block of code to run after all actors in this actor system have - * been stopped (Java API). + * been stopped. Multiple code blocks may be registered by calling this method multiple times; there is no + * guarantee that they will be executed in a particular order (Java API). */ def registerOnTermination(code: Runnable)