Added parens to unbecome
This commit is contained in:
parent
3c903ca077
commit
1f9d54dced
3 changed files with 5 additions and 5 deletions
|
|
@ -473,7 +473,7 @@ Here is another little cute example of ``become`` and ``unbecome`` in action:
|
|||
become {
|
||||
case Swap =>
|
||||
println("Ho")
|
||||
unbecome // resets the latest 'become' (just for fun)
|
||||
unbecome() // resets the latest 'become' (just for fun)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -511,7 +511,7 @@ Revert the Actor body using the ``unbecome`` method:
|
|||
.. code-block:: scala
|
||||
|
||||
def receive: Receive = {
|
||||
case "revert" => unbecome
|
||||
case "revert" => unbecome()
|
||||
}
|
||||
|
||||
Killing an Actor
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue