`Future[Option[T]] pipeTo self` sounds like a bad idea because there is no context to the message for the actor (it just gets a None, it doesn't even know what Option[T] it was since the T is erased.)
What's the use-case? On Sun, Jun 29, 2014 at 3:34 AM, Richard Rodseth <[email protected]> wrote: > So I've run into the "Monads don't compose" problem and am a bit reluctant > to tackle monad transformers and Scalaz at this point. > > I'm wondering what you all think about mapping the Future[Option[T]} to > something like Future[MyMessageType] , piping to self, and then pattern > matching on MyMessageType in the receive handler, forwarding to the > ultimate destination or handling the error case as needed. > > -- > >>>>>>>>>> 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 received this message because you are subscribed to the Google Groups > "Akka User List" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/akka-user. > For more options, visit https://groups.google.com/d/optout. > -- Cheers, √ -- >>>>>>>>>> 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 received this message because you are subscribed to the Google Groups "Akka User List" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.
