scala actor message definition

Posted by BenZen on Stack Overflow See other posts from Stack Overflow or by BenZen
Published on 2010-06-11T00:34:56Z Indexed on 2010/06/11 0:42 UTC
Read the original article Hit count: 326

Filed under:
|
|

Do i need to define class for message i want to retrieve on a scala actor?

i trying to get this up where am i wrong

def act() {
loop {
react {
case Meet => foundMeet = true ; goHome
case Feromone(qty) if (foundMeet == true) => sender ! Feromone(qty+1); goHome
}}}

© Stack Overflow or respective owner

Related posts about scala

Related posts about message