Skip to content

add supervisor package inspired by Elixir OTP Supervisor#28

Merged
mikehelmick merged 1 commit into
mainfrom
task/add-supervisor-package
Apr 5, 2026
Merged

add supervisor package inspired by Elixir OTP Supervisor#28
mikehelmick merged 1 commit into
mainfrom
task/add-supervisor-package

Conversation

@mikehelmick
Copy link
Copy Markdown
Owner

@mikehelmick mikehelmick commented Apr 5, 2026

Summary

  • Adds supervisor package with OneForOne and OneForAll restart strategies
  • ChildSpec.Start runs in a goroutine; nil return = clean exit (no restart), non-nil = crash (triggers restart)
  • OneForOne restarts only the failed child; OneForAll cancels all children and restarts the full set
  • Stop cancels all children and blocks until the supervisor loop exits; safe to call multiple times

Test plan

  • make test passes
  • make lint passes
  • make test-acc (race detector) passes

🤖 Generated with Claude Code

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@cla-bot cla-bot Bot added the cla-signed label Apr 5, 2026
@mikehelmick mikehelmick merged commit 8d2dc1e into main Apr 5, 2026
3 checks passed
@mikehelmick mikehelmick deleted the task/add-supervisor-package branch April 5, 2026 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant