Cleaning up the code

This commit is contained in:
Viktor Klang 2012-02-01 14:04:01 +01:00
parent aca5693ce6
commit 75e90cccdf
7 changed files with 20 additions and 35 deletions

View file

@ -337,7 +337,7 @@ class ActorDocSpec extends AkkaSpec(Map("akka.loglevel" -> "INFO")) {
"using pattern ask / pipeTo" in {
val actorA, actorB, actorC, actorD = system.actorOf(Props.empty)
//#ask-pipeTo
import akka.pattern.{ ask, pipeTo, pipe }
import akka.pattern.{ ask, pipe }
case class Result(x: Int, s: String, d: Double)
case object Request
@ -352,7 +352,7 @@ class ActorDocSpec extends AkkaSpec(Map("akka.loglevel" -> "INFO")) {
} yield Result(x, s, d)
f pipeTo actorD // .. or ..
pipe(f, actorD)
pipe(f) to actorD
//#ask-pipeTo
}