Good morning,
I am trying to see, how does Scala pattern match what type of Actor Event is happening, for example whether the event is a send event, receive event, function call event, etc.
Is it possible to have a form of match statement trying to check whether Scala matches a send event, … i.e. Is it possible to write something like this :
act match {
case (A ! a) => print “send event read”
case ( A receive message) => print " receive event read"
case (function_name(params)) => print “function call read”
case _ => “No event read”
}
Thanks a lot and good day