Hi Greg, I have a stream (FlowGraph) that I want to gracefully stop, meaning I want > to stop accepting new input from the Source, >
Do you mean you want to stop the stream from the outside? There is no built-in support for that, it is not trivial to implement either. I opened a ticket for this use-case: https://github.com/akka/akka/issues/18612 > wait until I'm sure everything going through the pipe has either reached > the Sink or other otherwise disposed (i.e. Error), then shut everything > down. > This can only be signaled by the Sinks themselves. The streaming infrastructure only cares about elements until they have been passed to the sinks. That does not mean however that processing has stopped, for example a file sink might have only buffered the last bytes but have not flushed them. Therefore, such Sinks usually materialize to a Future or something alike, and it is your responsibility to wait for those Futures. -Endre > > Is there a best-practice way to do this? > > Thanks, > Greg > > -- > >>>>>>>>>> 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. > -- Akka Team Typesafe - Reactive apps on the JVM Blog: letitcrash.com Twitter: @akkateam -- >>>>>>>>>> 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.
