Akka Kill vs. Stop vs. Poison Pill?

Newbie question of Akka – I’m reading over Akka Essentials, could someone please explain the difference between Akka Stop/Poison Pill vs. Kill ? The book offers just a small explaination “Kill is synchronous vs. Poison pill is asynchronous.” But in what way? Does the calling actor thread lock during this time? Are the children actors … Read more

Scala 2.8 breakOut

In Scala 2.8, there is an object in scala.collection.package.scala: def breakOut[From, T, To](implicit b : CanBuildFrom[Nothing, T, To]) = new CanBuildFrom[From, T, To] { def apply(from: From) = b.apply() ; def apply() = b.apply() } I have been told that this results in: > import scala.collection.breakOut > val map : Map[Int,String] = List(“London”, “Paris”).map(x => … Read more

Task not serializable: java.io.NotSerializableException when calling function outside closure only on classes not objects

Getting strange behavior when calling function outside of a closure: when function is in a object everything is working when function is in a class get : Task not serializable: java.io.NotSerializableException: testing The problem is I need my code in a class and not an object. Any idea why this is happening? Is a Scala … Read more