Sorry, I don't really get it. Before I get the number of the records from the likes stream - I have to materialize that stream in order to get the result.
So far I can think of a custom *GraphStage* that will take 2 inputs - the profile and the stream, and produce one output - profile, that will be emitted only after the last element of the likes stream is consumed, hence the number of the records is known. -- >>>>>>>>>> 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 https://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.