Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v15] Fix SemaphoreLock context.Context implementation #52404

Open
wants to merge 1 commit into
base: branch/v15
Choose a base branch
from

Conversation

GavinFrazar
Copy link
Contributor

Backports #52046 to branch/v15

This updates SempahoreLock to embed its context.Context and use
WithCancelCause for its cancellation func, so that it properly
implements the context.Context interface.
Specifically, the Err() method of a context.Context must not return a
nil error if its Done channel has closed.
@GavinFrazar GavinFrazar added backport no-changelog Indicates that a PR does not require a changelog entry labels Feb 21, 2025
@GavinFrazar GavinFrazar marked this pull request as ready for review February 21, 2025 23:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport no-changelog Indicates that a PR does not require a changelog entry size/sm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants