Re: [akka-user] [Akka stream] Sink/source materialization

2017-02-09 Thread hbf
On Wednesday, February 8, 2017 at 12:25:25 AM UTC-8, √ wrote: > > You mean like: Source.single(()).flatMapConcat(_ => yourFunction())? > Cool, that works. I also see Source.unfoldResource, which I missed before and seems super useful. I was more struggling with the sink-side: is there a

Re: [akka-user] [Akka stream] Sink/source materialization

2017-02-08 Thread Viktor Klang
You mean like: Source.single(()).flatMapConcat(_ => yourFunction())? -- Cheers, √ On Feb 8, 2017 03:33, "hbf" wrote: > Heya everybody! > > I know that Akka Stream elegantly distinguishes *describing* a graph from > *materializing* a graph. > > When working on custom Akka Stream

[akka-user] [Akka stream] Sink/source materialization

2017-02-07 Thread hbf
Heya everybody! I know that Akka Stream elegantly distinguishes *describing* a graph from *materializing* a graph. When working on custom Akka Stream sink/sources, I often find myself looking for a simple way to create a source (or sink) from a function that gets called at materialization