Go to file
2020-08-13 23:02:52 +05:30
ActorDemo.sc Removed redundant thread code 2020-08-13 23:02:52 +05:30
LICENSE first commit 2020-08-13 22:47:27 +05:30
README.md first commit 2020-08-13 22:47:27 +05:30

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)