Hi there, If the stream completes the actor will be stopped, you can use the usual `postStop` method to "do things in there" i.e. signal this max processed element or something else somewhere.
If you can draw up a more specific example we could work on that. Do you want to expose this value as the materialized value of such a source? Other ideas: Since an ActorPublisher can get parameters passed in - it's your Props after all - you could simply pass in a Promise to be completed by it for example. -- Cheers, Konrad 'ktoso’ Malawski Akka @ Typesafe On 10 October 2015 at 23:08:36, Jan Algermissen (algermissen1...@me.com) wrote: Hi, I am implementing an ActorPublisher that reads records from a database. When the stream is completed I would like to extract some value from the actor (for example the maximum of some field of the records processed). Is there a way to extract such a value from the ActorPublisher once the stream has completed (like there is in the ActorSubscriber case)? Or would I have to fork the stream an calculate such a value using a separate (forked-off) flow and sink for it? Jan -- >>>>>>>>>> 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+unsubscr...@googlegroups.com. To post to this group, send email to akka-user@googlegroups.com. Visit this group at http://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout. -- >>>>>>>>>> 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+unsubscr...@googlegroups.com. To post to this group, send email to akka-user@googlegroups.com. Visit this group at http://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.