Added docs to registerOnTermination, that you can add multiple code blocks
This commit is contained in:
parent
feccfa0e2f
commit
3f8f8632cc
1 changed files with 4 additions and 2 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue