I have an actor which on receiving a message, searches the filesystem for a file and returns the full path of the File.
To keep it asynchronous, I have done:
import akka.pattern.pipe
Does the trick. Doing:
val reply = sender future { val ans = searchAndCache(s) println("Input Request: "+s+" output:"+ans+" "+reply.path) ans } pipeTo reply
replies back to the sender