Replies: 1 comment 1 reply
-
You know, I've thought of this myself - the boilerplate I have to do around sending that reply at the very end is kind of a nuisance. I wonder if it'd be better if we changed the signature so you get the array of all events back and you can just do your stuff that way? Or would that just introduce new problems because now you have to loop through it all yourself? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Most of my persistent actors use
PersistAll
with some kind of flag to reply to the sender, i.e.To me, it makes sense to have a callback that's called after processing the events into the state, like
or perhaps
This would be nice with edge cases where occasionally no events are generated but you still want to send a reply.
Beta Was this translation helpful? Give feedback.
All reactions