- Core holds context.Context + CancelFunc - New() creates background context - ServiceStartup creates fresh context from caller's ctx (restart safe) - ServiceShutdown cancels context before draining tasks - c.Context() accessor lets task handlers check Done() for graceful exit Co-Authored-By: Virgil <virgil@lethean.io> |
||
|---|---|---|
| .. | ||
| core | ||