Skip to content

Conversation

@IAmRadek
Copy link
Contributor

No description provided.

- Remove StartingContext() to prevent misuse with long-running operations
- Add Started() <-chan struct{} for signaling when Run() is called
- Add CallbackErr type for structured error reporting with callback names
- Add Name() option for explicit callback identification
- Add callerLocation() for automatic callback naming (file:line)
- Move signal test to separate file with //go:build !windows
- Update documentation to reflect two-phase lifecycle (running, teardown)

This is a breaking change that simplifies the mental model:

- Context() is the app lifetime context
- TeardownContext() bounds cleanup time
- Started() signals readiness (useful for health probes)
@IAmRadek IAmRadek merged commit c641f44 into main Jan 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants