Implement a resile/supervisor package to manage the lifecycle of long-running background goroutines.
Erlang Context: Inspired by OTP Supervision Trees, this provides "Process Resilience" beyond transient function calls.
Proposed Implementation:
- Support restart strategies:
OneForOne, OneForAll, RestForOne.
- Integrate with
resile.Backoff to prevent "restart storms".
- Integrate with
resile.Instrumenter for visibility into worker restarts.
- Ensure clean shutdown using
context.Context.
Implement a
resile/supervisorpackage to manage the lifecycle of long-running background goroutines.Erlang Context: Inspired by OTP Supervision Trees, this provides "Process Resilience" beyond transient function calls.
Proposed Implementation:
OneForOne,OneForAll,RestForOne.resile.Backoffto prevent "restart storms".resile.Instrumenterfor visibility into worker restarts.context.Context.