diff options
| author | Paul Buetow <paul@buetow.org> | 2026-04-03 08:06:43 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-04-03 08:06:43 +0300 |
| commit | 170a4a9d46a32bcb28c04f6ff6bb1a48284ec424 (patch) | |
| tree | 2befb9d05cb857327efd0ba65bf06ac52cff8b11 /internal/processor/processor_test.go | |
| parent | f4bc35c0a24766c8e9a155cbad5ffdaf088ec458 (diff) | |
task 00a: track background goroutines in WaitGroup and respect ctx.Done()
- startFileCheckTicker: add wg.Add(1)/wg.Done() so the app shutdown handler
waits for the ticker goroutine to exit (it already uses ctx.Done() to stop).
- post-delete cleanup goroutine: add wg.Add(1)/wg.Done() and a ctx.Done()
case so a shutdown during the 5-second polling window terminates cleanly
instead of leaking the goroutine.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'internal/processor/processor_test.go')
0 files changed, 0 insertions, 0 deletions
