Hi guys,
Given the following flow --
val flow = Flow() { implicit b =>
import FlowGraph.Implicits._
val welcome = Source.single("welcome")
val echo = b.add(Flow[String])
val concat = b.add(Concat[String]())
welcome ~> concat.in(0)
echo.outlet ~> concat.in(1)
(echo.inlet, concat.out)
}
Is this expected *not* to work?
Source.empty
.via(flow)
.runWith(TestSink.probe())
.request(1)
.expectNext("welcome")
.expectComplete()
However, changing the request size to '2' works ok:
Source.empty
.via(flow)
.runWith(TestSink.probe())
.request(2)
.expectNext("welcome")
.expectComplete()
I'm guessing this is since concat doesn't eagerly pull the next element
from the second stream on the concat?
--
>>>>>>>>>> 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.