These are chat archives for petabridge/akka-bootcamp

30th
Dec 2017
Laimonas Simutis
@laimis
Dec 30 2017 19:42
I notice that in ConsoleReaderActor, the loop is accomplished by Self.Tell("continue") at the end of OnReceive. Would while(true) be acceptable as well or is there a reason that was not used and explicit messaging is relied on instead?
Laimonas Simutis
@laimis
Dec 30 2017 19:52
Oh... I think I get it why it can't be a loop. If it was a loop inside of OnProcess, the actor would be unavailable for any other messages to be sent to it.