improved perf with 25 % + renamed FutureResult -> Future + Added lightweight future factory method
This commit is contained in:
parent
f571c07df2
commit
f3a457d4de
9 changed files with 60 additions and 92 deletions
|
|
@ -8,7 +8,7 @@ import java.util.concurrent.atomic.AtomicReference
|
|||
import java.util.concurrent.{ConcurrentLinkedQueue, LinkedBlockingQueue}
|
||||
|
||||
import se.scalablesolutions.akka.actor.Actor
|
||||
import se.scalablesolutions.akka.dispatch.CompletableFutureResult
|
||||
import se.scalablesolutions.akka.dispatch.CompletableFuture
|
||||
|
||||
/**
|
||||
* Implements Oz-style dataflow (single assignment) variables.
|
||||
|
|
@ -74,7 +74,7 @@ object DataFlow {
|
|||
private class Out[T <: Any](dataFlow: DataFlowVariable[T]) extends Actor {
|
||||
timeout = TIME_OUT
|
||||
start
|
||||
private var readerFuture: Option[CompletableFutureResult] = None
|
||||
private var readerFuture: Option[CompletableFuture] = None
|
||||
def receive = {
|
||||
case Get =>
|
||||
val ref = dataFlow.value.get
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue