| 11 | ) |
| 12 | |
| 13 | type ProcessContext struct { |
| 14 | wg *sync.WaitGroup // used to wait for components to shutdown |
| 15 | ctx context.Context // cancelled when Stop is called |
| 16 | shutdown context.CancelFunc // shut down Dendrite |
| 17 | degraded atomic.Bool |
| 18 | } |
| 19 | |
| 20 | func NewProcessContext() *ProcessContext { |
| 21 | ctx, shutdown := context.WithCancel(context.Background()) |
nothing calls this directly
no outgoing calls
no test coverage detected