--
>>>>>>>>>> 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 akka-user+...@googlegroups.com.
To post to this group, send email to akka...@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.
Patrik Nordwall
Typesafe - Reactive apps on the JVM
Twitter: @patriknw
You received this message because you are subscribed to a topic in the Google Groups "Akka User List" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/akka-user/6819zf_IV3Q/unsubscribe.
To unsubscribe from this group and all its topics, send an email to akka-user+...@googlegroups.com.
I agree completely - what I guess I'm struggling with (mainly because I haven't yet completely grokked the stream API yet) is how to elegantly compose these abstractions on top of a stream. The nice thing about a try is that while 'inside' it, I don't know or care about exception handling.
Basically, what I guess I'm looking for is a way to author a Flow[A, B, _], and have a way to lift it into a Flow[A, Try[B], _]. This, of course doesn't work perfectly since there's nothing about a stream that implies a 1:1 correlation between inputs and outputs. Of course, you could always just implement it such that every successful output is lifted into a Success, and any failure drops the current element and emits a single Failure wrapping the cause. Correlation between input elements and Failure on the output could be implemented by the user by just ensuring that any thrown exceptions have a reference to the relevant data.