Tags: hyp3rd/go-again
Tags
feat!: add context parameter to NewRetrier constructor BREAKING CHANGE: NewRetrier now requires a context.Context parameter as the first argument - Update NewRetrier signature to accept context.Context as first parameter - Enables proper context-based cancellation and deadline handling - Removes internal context field in favor of external context management - Update all examples and tests to use new constructor signature - Improve code quality and consistency: - Add missing blank lines for better readability - Add gosec nolint directive for harmless random number usage - Simplify timer pool Put method logic - Rename timer variables for clarity - Add missing context import in validate example - Update cspell configuration: - Remove YAML document separator for consistency - Add "randv" to dictionary for random number generation This change provides better context management, enabling proper cancellation propagation and deadline handling throughout the retry operations while maintaining cleaner separation of concerns.
PreviousNext