swactor/src
Developer 1779ad63b9 feat: actor recovery via factory-based restart
Add spawn_restartable(actor, factory, max_restarts) to Runtime and Ctx.
On panic, the actor is recreated using the factory with fresh state and
cleared mailbox. After max_restarts exhausted, permanently poisoned.

AnyActor::try_restart() trait method with backward-compatible default.
Factory stored as Arc<dyn Fn() -> A + Send + Sync> — safe to read after
catch_unwind since factory fields are never touched by handle_any.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-12 12:05:21 +00:00
..
actor.rs feat: actor recovery via factory-based restart 2026-02-12 12:05:21 +00:00
channel.rs fix: stats datatypes and refactor channel signature (#28) 2026-02-10 07:35:58 +00:00
config.rs feat: per-actor mailbox backpressure with configurable overflow 2026-02-12 11:54:16 +00:00
delivery.rs feat: load-aware actor placement + work stealing research 2026-02-12 11:46:53 +00:00
error.rs fix: stats datatypes and refactor channel signature (#28) 2026-02-10 07:35:58 +00:00
lib.rs feat: transport protocol (#27) 2026-02-09 19:05:37 +00:00
runtime.rs feat: actor recovery via factory-based restart 2026-02-12 12:05:21 +00:00
stats.rs feat: actor recovery via factory-based restart 2026-02-12 12:05:21 +00:00
transport.rs feat: distributed runtime (#30) 2026-02-12 09:13:50 +00:00
worker.rs feat: actor recovery via factory-based restart 2026-02-12 12:05:21 +00:00