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> |
||
|---|---|---|
| .. | ||
| runtime_api.rs | ||
| test_python.py | ||
| transport_api.rs | ||