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> |
||
|---|---|---|
| .. | ||
| actor.rs | ||
| channel.rs | ||
| config.rs | ||
| delivery.rs | ||
| error.rs | ||
| lib.rs | ||
| runtime.rs | ||
| stats.rs | ||
| transport.rs | ||
| worker.rs | ||