I think I found a general solution in the meantime. We have a "semaphore" component that wraps a flow and tracks / delimits the number of elements that may be "in flight" at the same time in the wrapped flow (the flow must have a 1:1 relationship between its input and output).The semaphore component can forward a completion when there are no more elements in flight. (The wrapped flow is canceled in that case just in case that it completes not by itself.)
Am Mittwoch, 12. Oktober 2016 09:21:09 UTC+2 schrieb EXTERNAL Wachter Stefan (Keybird IT Consulting und Vetriebs GmbH, INST-ICM/BSV-BS): > > Hi all, > > > > is there a principled way to complete a graph that contains a cycle? The > basic problem is that the initial Merge component can either complete > eagerly or not. Both settings are suboptimal (if it completes not eager it > will complete never, if it completes eager elements in the feedback cycle > get lost). > > > > I think that using some kind of poison pill could be used. However, is > there some principled mechanism that might be used? > > > > Mit freundlichen Grüßen / Best regards > > > > *Dr. Stefan Wachter* > > > > Bosch Software Innovations GmbH > > Communications (INST-ICM/BSV-BS) > > Stuttgarterstr. 130 > > 71332 Waiblingen > > GERMANY > > www.bosch-si.de > > www.blog.bosch-si.com > > > > Tel. +49 711 811 58 477 > > Fax +49 711 811 58 100 > > external.stefan.wach...@bosch-si.com <daniel.mau...@bosch-si.com> > > > -- >>>>>>>>>> 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.