I was looking at ActorLogging here and came across this syntax:
def receive = LoggingReceive {
case x => ...
}
What does this syntax SomeName { }
mean? I know that in scala {}
create a block of statements and the last line is assigned the variable. The comments explain it as :
Wrap a Receive partial function in a logging enclosure
Is there a technical term for it so that I can learn its usage more? Note: I know what a partial function is. From the comments and answers I understood that LoggingReceive returns a partial function and the syntax of apply.