You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Rohan Sircar
14eaf423f0
|
4 years ago | |
---|---|---|
ActorDemo.sc | 4 years ago | |
LICENSE | 4 years ago | |
README.md | 4 years ago |
README.md
Akka Actors Demo
An experiment to see how the actor model can be used to synchronize / encapsulate mutable state without the use of locks.
Usage
./ActorsDemo.sc
Sample output:
22:11:47.473 [TestActors-akka.actor.default-dispatcher-3] INFO ammonite.$file.ActorDemo$RootActor$ - --- Beginning ---
22:11:47.475 [TestActors-akka.actor.default-dispatcher-6] INFO ammonite.$file.ActorDemo$CounterActor$ - Value of counter is 5
22:11:47.475 [TestActors-akka.actor.default-dispatcher-3] INFO ammonite.$file.ActorDemo$RootActor$ - Received message Reply(5)