rsimmonsjr / axiom

Implementation of a highly-scalable and ergonomic actor model for Rust
Other
184 stars 21 forks source link

Make ActorBuilder reusable #120

Closed khionu closed 4 years ago

khionu commented 4 years ago

When an Actor stops and needs to be restarted, it requires getting a fresh ActorBuilder to do so. Ideally, an ActorBuilder can be reused to make multiple copies of the Actor.

Unresolved: Q: Should we cache a default state with the ActorBuilder? Would impose Clone on State if we did so, or we would need to cache a closure to produce a fresh state. Alternative: require a fresh state each time the ActorBuilder produces an Actor.