newActor(() => refactored
This commit is contained in:
parent
57e46e2ecc
commit
ae6eb54ee9
20 changed files with 53 additions and 53 deletions
|
|
@ -27,7 +27,7 @@ import se.scalablesolutions.akka.actor.Actor
|
|||
import se.scalablesolutions.akka.dispatch.CompletableFuture
|
||||
|
||||
def thread(body: => Unit) = {
|
||||
val thread = newActor(() => new IsolatedEventBasedThread(body)).start
|
||||
val thread = actorOf(new IsolatedEventBasedThread(body)).start
|
||||
thread ! Start
|
||||
thread
|
||||
}
|
||||
|
|
@ -98,7 +98,7 @@ import se.scalablesolutions.akka.dispatch.CompletableFuture
|
|||
}
|
||||
}
|
||||
|
||||
private[this] val in = newActor(() => new In(this))
|
||||
private[this] val in = actorOf(new In(this))
|
||||
|
||||
def <<(ref: DataFlowVariable[T]) = in ! Set(ref())
|
||||
|
||||
|
|
@ -108,7 +108,7 @@ import se.scalablesolutions.akka.dispatch.CompletableFuture
|
|||
val ref = value.get
|
||||
if (ref.isDefined) ref.get
|
||||
else {
|
||||
val out = newActor(() => new Out(this))
|
||||
val out = actorOf(new Out(this))
|
||||
blockedReaders.offer(out)
|
||||
val result = out !! Get
|
||||
out ! Exit
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue