Restore previous actor state after exception

Viewed 413

I have an actor which receive Int and accumulate result to the buffer. Some times actor can throw exception. What is the best way to restore previous state of buffer into actor after exception ?

BR.

4 Answers
Related