I don't think there's a general way to achieve this - a Source's may simply 
not be ready yet at any given point in time.
But for your use-case, can't you simply wait with the file creation until 
you actually get data from the stream?

Tal



On Thursday, February 25, 2016 at 2:12:04 PM UTC+2, Kyrylo Stokoz wrote:
>
> Hi All,
>
> I would like to ensure that provided Source is not empty, is there any way 
> to validate this?
>
> Use case: I have a function that accept source and connects it to file 
> sink, if source is empty empty files get created, which i would like to 
> avoid.
>
> Regards,
> Kyrylo
>

-- 
>>>>>>>>>>      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 https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to