pipeTo will wrap failures in an akka.actor.Status.Failure and send that to
the actor that you direct the result to (self in this case).
*Important note*: There is an error in your code where you access sender()
outside of the actor execution flow. For-comprehensions desugar to nested
calls of f
I sometimes call recover on the returned Future to generate a message of my
own, before doing the pipeTo.
On Wed, Aug 5, 2015 at 6:30 AM, Johan Andrén
wrote:
> pipeTo will wrap failures in an akka.actor.Status.Failure and send that
> to the actor that you direct the result to (self in this case)