You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**A worker lifecycle library for Go — manage background goroutines with panic recovery, configurable restart, tracing, and structured shutdown.**
11
+
12
+
Built on [suture](https://github.com/thejerf/suture) for Erlang-style supervisor trees. Part of the [ColdBrew](https://docs.coldbrew.cloud) framework.
13
+
14
+
---
15
+
16
+
## API Reference
17
+
18
+
19
+
3
20
# workers
4
21
5
22
```go
@@ -13,7 +30,7 @@ Package workers provides a worker lifecycle library for Go, built on [thejerf/su
13
30
Every worker runs inside its own supervisor subtree. This means:
14
31
15
32
- Each worker gets panic recovery and restart independently
16
-
- Workers can dynamically spawn child workers via WorkerContext.Add
33
+
- Workers can dynamically spawn child workers via [WorkerContext](<#WorkerContext>)
17
34
- When a parent worker stops, all its children stop \(scoped lifecycle\)
18
35
- The supervisor tree prevents cascading failures and CPU\-burn restart storms
19
36
@@ -38,7 +55,7 @@ Common patterns are provided as helpers:
38
55
39
56
### Dynamic Workers
40
57
41
-
Manager workers can spawn and remove child workers at runtime using WorkerContext.Add, WorkerContext.Remove, and WorkerContext.Children. Children join the parent's supervisor subtree and get full framework guarantees \(tracing, panic recovery, restart\). See \[Example\_dynamicWorkerPool\].
58
+
Manager workers can spawn and remove child workers at runtime using the Add, Remove, and Children methods on [WorkerContext](<#WorkerContext>). Children join the parent's supervisor subtree and get full framework guarantees \(tracing, panic recovery, restart\). See \[Example\_dynamicWorkerPool\].
0 commit comments