Source + 1 input = Flow :-)

Read up on custom stages 
http://doc.akka.io/docs/akka/2.4.2/scala/stream/stream-customize.html#stream-customize-scala
and implement one using GraphStage, you can expose FlowShape from it.

Nothing mandates that the input of a flow has to directly go into the output – 
it can be, as you hinted, just a "feedback input".


Happy hakking.

-- 
Cheers,
Konrad 'ktoso’ Malawski
Akka @ Lightbend

On 30 March 2016 at 01:58:09, Gary Struthers (agilej...@earthlink.net) wrote:

I'm thinking about a Source that gets external data having a feedback input to 
tell it when to get more data. Is there a way to make a shape with an input and 
still work as a Source?

Thanks,
Gary
--
>>>>>>>>>> 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.

-- 
>>>>>>>>>>      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.

Reply via email to