Run independent futures on the dispatcher directly

This commit is contained in:
Derek Williams 2011-02-25 15:20:58 -07:00
parent a76e62096f
commit b2c62ba18d
5 changed files with 38 additions and 4 deletions

View file

@ -98,6 +98,10 @@ class ExecutorBasedEventDrivenDispatcher(
registerForExecution(mbox)
}
private[akka] def executeFuture(invocation: FutureInvocation): Unit = if (active.isOn) {
executorService.get() execute invocation
} else log.slf4j.warn("{} is shut down", this)
/**
* @return the mailbox associated with the actor
*/