FS#44062 - [scala] Missing Akka Library
Attached to Project:
Community Packages
Opened by Mark Z (markz79) - Thursday, 05 March 2015, 22:21 GMT
Last edited by Sergej Pupykin (sergej) - Wednesday, 21 June 2017, 11:36 GMT
Opened by Mark Z (markz79) - Thursday, 05 March 2015, 22:21 GMT
Last edited by Sergej Pupykin (sergej) - Wednesday, 21 June 2017, 11:36 GMT
|
Details
Description:
The current Scala package (scala 2.11.6-1) includes an old Actor implementation. The new one is Akka, which is now part of the standard library. Steps to reproduce: The following program fails to compile with "scalac" because the "akka.actor.Actor" object is not found. import akka.actor.Actor import akka.actor.ActorSystem import akka.actor.Props class HelloActor extends Actor { def receive = { case "hello" => println("hello back at you") case _ => println("huh?") } } object Main extends App { val system = ActorSystem("HelloSystem") // default Actor constructor val helloActor = system.actorOf(Props[HelloActor], name = "helloactor") helloActor ! "hello" helloActor ! "buenos dias" } |
This task depends upon
Closed by Sergej Pupykin (sergej)
Wednesday, 21 June 2017, 11:36 GMT
Reason for closing: Won't implement
Wednesday, 21 June 2017, 11:36 GMT
Reason for closing: Won't implement
For instance, you could add the dependency "com.typesafe.akka" %% "akka-actor" % "2.4.17" to your build.sbt as documented on http://doc.akka.io/docs/akka/current/intro/getting-started.html#Using_Akka_with_SBT