You can plug in an intermediate graph stage that allows cancelling upstream 
flow + completing downstream flow asynchronously.

https://github.com/rkrzewski/akka-cluster-etcd/blob/master/etcd-client/src/main/scala/pl/caltha/akka/streams/FlowBreaker.scala

Cheers,
Rafał

W dniu środa, 24 lutego 2016 21:23:02 UTC+1 użytkownik Ramin Alidousti 
napisał:
>
> Hi,
>
> I'm new to akka-stream. I have a bidiflow that has been materialized. Now 
> in certain cases I need to terminate the stream on demand and maybe 
> recreate it later. The way I'm doing that now is to call terminate() on the 
> implicit system. But I was wondering if there was a more appropriate way of 
> "stopping/terminating" the flow since the call to terminate() is too 
> intrusive as the system is also serving other actor related functionalities.
>
> Best,
> Ramin
>

-- 
>>>>>>>>>>      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 https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to