thanks a lot. Cool.. I should have looked 
into 
http://doc.akka.io/api/akka-stream-and-http-experimental/2.0/#akka.stream.scaladsl.Source
 

val input:List[Int]=List(1,2,3)

val source1 = 
Source.tick(FiniteDuration(1,TimeUnit.SECONDS),FiniteDuration(1,TimeUnit.SECONDS),input)

source1.mapConcat[Int](_.toList).via(flow).runForeach(println)


What you would suggest if List[HttpRequest] and would like to use Flow as 
Http(system).outgoingConnection(host = "abs", port = 8080)  can I use same as 
above or any better approach.


On Monday, March 7, 2016 at 3:29:43 PM UTC-6, √ wrote:
>
> mapConcat(identity)
>
> -- 
> Cheers,
> √
> On Mar 7, 2016 10:26 PM, "Arun Sethia" <sethi...@gmail.com <javascript:>> 
> wrote:
>
>> Hi,
>>
>> I have requirement where source should repeat infinite times after given 
>> interval, for example:
>>
>> val input:List[Int]=List(1,2,3)
>>
>>
>> val flow=Flow[Int].map(x=> x * 2)
>>
>>
>> Source(input.toList).via(*flow)*.runForeach(println)
>>
>>
>> The source "input" should repeat every 1 second. 
>>
>>
>> I tried to use val source = 
>> Source.tick(FiniteDuration(1,TimeUnit.SECONDS),FiniteDuration(1,TimeUnit.SECONDS),input),
>>   but this will provide out stream as List.
>>
>>
>> Thanks  
>>
>> Arun
>>
>> -- 
>> >>>>>>>>>> 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+...@googlegroups.com <javascript:>.
>> To post to this group, send email to akka...@googlegroups.com 
>> <javascript:>.
>> 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