Re: [akka-user] Akka Persistence - callback for persistAll when all events have been saved

2016-06-13 Thread Aditya Prasad
Right-o, thanks :) On Sat, Jun 11, 2016 at 8:30 AM, Patrik Nordwall wrote: > You need to pass something, but it can any object, e.g. a String that you > don't use. > > /Patrik > > lör 11 juni 2016 kl. 01:15 skrev Aditya Prasad : > >> Newb question:

Re: [akka-user] Akka Persistence - callback for persistAll when all events have been saved

2016-06-11 Thread Patrik Nordwall
You need to pass something, but it can any object, e.g. a String that you don't use. /Patrik lör 11 juni 2016 kl. 01:15 skrev Aditya Prasad : > 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

Re: [akka-user] Akka Persistence - callback for persistAll when all events have been saved

2016-06-10 Thread Aditya Prasad
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

Re: [akka-user] Akka Persistence - callback for persistAll when all events have been saved

2016-02-28 Thread Konrad Malawski
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" wrote: > Hi, > > Is there a way to execute a handler when all events have been saved using > persistAll? > i.e. have (handler: