Hello,
I have a remote actor that does work in its receive block that can return a
future. For example:
class FooActor() extends Actor {
def receive = {
case inMsg:Msg => sender ! doSomeWork(inMsg) // doSomeWork returns
Future[Seq[String]]
}
}
Would this work remotely? I tried using it
Hi Greg,
You're looking for:
import akka.pattern.pipe
class FooActor() extends Actor {
def receive = {
case inMsg:Msg => doSomeWork(inMsg) pipeTo sender() // doSomeWork returns
Future[Seq[String]]
}
}
I.e. you want to send the result of the Future, not the Future itself.
On Wed, Sep 24, 2014
Precisely what I needed. Worked great. Thank you!
--
>> Read the docs: http://akka.io/docs/
>> Check the FAQ:
>> http://doc.akka.io/docs/akka/current/additional/faq.html
>> Search the archives: https://groups.google.com/group/akka-user
---
You re