can mailboxSize be used to count number of messages received by a scala actor?

93 views Asked by At

I have a problem in which I have to count the number of messages received by several scala actors (I am using all the actors as instances of the same Actor class), and also maintain their counts separately for each actor. The actors send the message to each other and once a certain number of messages are received by an actor, I should stop the communication between actors. Is there any way in which I can do this in scala?

0

There are 0 answers