Removed Actor.send function
This commit is contained in:
parent
d8461f4dca
commit
b0bee0d417
11 changed files with 40 additions and 40 deletions
|
|
@ -27,7 +27,7 @@ import se.scalablesolutions.akka.dispatch.CompletableFuture
|
|||
|
||||
def thread(body: => Unit) = {
|
||||
val thread = new IsolatedEventBasedThread(body).start
|
||||
thread send Start
|
||||
thread ! Start
|
||||
thread
|
||||
}
|
||||
|
||||
|
|
@ -93,9 +93,9 @@ import se.scalablesolutions.akka.dispatch.CompletableFuture
|
|||
|
||||
private[this] val in = new In(this)
|
||||
|
||||
def <<(ref: DataFlowVariable[T]) = in send Set(ref())
|
||||
def <<(ref: DataFlowVariable[T]) = in ! Set(ref())
|
||||
|
||||
def <<(value: T) = in send Set(value)
|
||||
def <<(value: T) = in ! Set(value)
|
||||
|
||||
def apply(): T = {
|
||||
val ref = value.get
|
||||
|
|
@ -104,13 +104,13 @@ import se.scalablesolutions.akka.dispatch.CompletableFuture
|
|||
val out = new Out(this)
|
||||
blockedReaders.offer(out)
|
||||
val result = out !! Get
|
||||
out send Exit
|
||||
out ! Exit
|
||||
result.getOrElse(throw new DataFlowVariableException(
|
||||
"Timed out (after " + TIME_OUT + " milliseconds) while waiting for result"))
|
||||
}
|
||||
}
|
||||
|
||||
def shutdown = in send Exit
|
||||
def shutdown = in ! Exit
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue