re #281: Made akka-core compile and test after breaking changes introduced by removing the type parameter from ActorRef.!!.

This commit is contained in:
Heiko Seeberger 2010-06-21 12:25:24 +02:00
parent 5668337975
commit 2128dcda3b
10 changed files with 24 additions and 32 deletions

View file

@ -10,7 +10,6 @@ import java.util.concurrent.{ConcurrentLinkedQueue, LinkedBlockingQueue}
import se.scalablesolutions.akka.actor.{Actor, ActorRef}
import se.scalablesolutions.akka.actor.Actor._
import se.scalablesolutions.akka.dispatch.CompletableFuture
import se.scalablesolutions.akka.util.Helpers.narrow
/**
* Implements Oz-style dataflow (single assignment) variables.
@ -103,7 +102,7 @@ import se.scalablesolutions.akka.dispatch.CompletableFuture
else {
val out = actorOf(new Out(this)).start
blockedReaders.offer(out)
val result = narrow[T](out !! Get)
val result = (out !! Get).as[T]
out ! Exit
if (result.isDefined) result.get
else throw new DataFlowVariableException("Timed out (after " + TIME_OUT + " milliseconds) while waiting for result")