Newb question: what if I don't have an event for the deferAsync() call? I 
just want to execute a block with the guarantee that it runs after 
persistAll() completes.

On Sunday, February 28, 2016 at 7:20:47 AM UTC-8, Łukasz Gąsior wrote:
>
> Thanks! 
> I think that's exactly what I need, and now that I know about it I see a 
> section in docs right above 
> "Nested persist calls", which I was looking at before posting my question.
>
> Cheers
>
> W dniu niedziela, 28 lutego 2016 15:50:55 UTC+1 użytkownik Konrad Malawski 
> napisał:
>>
>> A defer() just after the persistAll call should pretty much be what you 
>> need, unless I missed something :)
>> On Feb 28, 2016 15:23, "Łukasz Gąsior" <lukas....@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> Is there a way to execute a handler when all events have been saved 
>>> using persistAll?
>>> i.e. have (handler: Seq[A] => Unit) or even (handler: () => Unit)
>>>
>>> Cheers,
>>> Łukasz
>>>
>>> -- 
>>> >>>>>>>>>> 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.
>>> To post to this group, send email to akka...@googlegroups.com.
>>> 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