ticket 1043
This commit is contained in:
parent
6a91ec0baa
commit
1006fa61db
1 changed files with 2 additions and 2 deletions
|
|
@ -228,11 +228,11 @@ A child actor can tell the supervising actor to unlink him by sending him the 'U
|
|||
|
||||
.. code-block:: scala
|
||||
|
||||
if (supervisor.isDefined) supervisor.get ! Unlink(this)
|
||||
if (supervisor.isDefined) supervisor.get ! Unlink(self)
|
||||
|
||||
// Or shorter using 'foreach':
|
||||
|
||||
supervisor.foreach(_ ! Unlink(this))
|
||||
supervisor.foreach(_ ! Unlink(self))
|
||||
|
||||
The supervising actor's side of things
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue