+act #3949 add LoggingReceive.withLabel
def someState = LoggingReceive.withLabel("some state") {
case msg => ...
}
This commit is contained in:
parent
a9c022e92a
commit
dc305eaf18
2 changed files with 20 additions and 7 deletions
|
|
@ -74,7 +74,10 @@ object TestkitDocSpec {
|
|||
//#logging-receive
|
||||
import akka.event.LoggingReceive
|
||||
def receive = LoggingReceive {
|
||||
case msg => // Do something...
|
||||
case msg => // Do something ...
|
||||
}
|
||||
def otherState: Receive = LoggingReceive.withLabel("other") {
|
||||
case msg => // Do something else ...
|
||||
}
|
||||
//#logging-receive
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue