Re: [akka-user] akka-streams: wrap blocking iterator when creating a Source

2015-09-08 Thread Akka Team
Hi Alexander, On Sat, Sep 5, 2015 at 7:28 PM, Alexander Semenov wrote: > Hello dear community. > > Is it okay to wrap a blocking iterator when creating a Source? I have a > blocking API, which I want to hide behind the Source. Here is an example (I > suspect I might need

Re: [akka-user] akka-streams: wrap blocking iterator when creating a Source

2015-09-08 Thread Viktor Klang
It is also possible to use s.c.blocking {} On Tue, Sep 8, 2015 at 12:52 PM, Akka Team wrote: > Hi Alexander, > > > On Sat, Sep 5, 2015 at 7:28 PM, Alexander Semenov > wrote: > >> Hello dear community. >> >> Is it okay to wrap a blocking iterator

[akka-user] akka-streams: wrap blocking iterator when creating a Source

2015-09-05 Thread Alexander Semenov
Hello dear community. Is it okay to wrap a blocking iterator when creating a Source? I have a blocking API, which I want to hide behind the Source. Here is an example (I suspect I might need to put blocking code on another executor, is this the case?): object playground extends App {