Go to file
Rohan Sircar 1abc30070c Fixed a critical mistake
Erroneously used functional actor for mutable state.
Changed actor style to OO from functional.
Experimented with ask pattern to get final result
2020-08-19 13:17:23 +05:30
.gitignore Fixed a critical mistake 2020-08-19 13:17:23 +05:30
ActorDemo.sc Fixed a critical mistake 2020-08-19 13:17:23 +05:30
LICENSE first commit 2020-08-13 22:47:27 +05:30
README.md Fixed a critical mistake 2020-08-19 13:17:23 +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:

13:02:58.966 [TestActors-akka.actor.default-dispatcher-3] INFO ammonite.$file.AkkaActorsDemo.ActorDemo$RootActor$ - --- Beginning ---
13:02:58.967 [TestActors-akka.actor.default-dispatcher-5] INFO ammonite.$file.AkkaActorsDemo.ActorDemo$CounterActor$CounterActor - Value of counter is 5
CounterResult(5)