re #281: Made akka-core compile and test after breaking changes introduced by removing the type parameter from ActorRef.!!.
This commit is contained in:
parent
5668337975
commit
2128dcda3b
10 changed files with 24 additions and 32 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue