Bethibande / actors

A actor framework and KSP processor/generator for kotlin.
Apache License 2.0
2 stars 0 forks source link

Rewrite close logic #31

Closed Bethibande closed 5 months ago

Bethibande commented 5 months ago

Task

Motivation

Currently it's possible for an actor to exist twice if you close the actor and then re-create it. The problem with this is that the old actor may still exist in the background, processing all commands left in it's inbox from before it was closed. In the worst case the closed actor may even write to the database whilst a new actor already exists causing inconsistent state.