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

errgroup: return context.Canceled instead of using another context #1410

Merged
merged 1 commit into from
Feb 29, 2024

Conversation

serprex
Copy link
Contributor

@serprex serprex commented Feb 29, 2024

errgroup seems to prefer the error raised by one of its goroutines rather than the calling context's cancelation for Wait's return value, return context.Canceled to set Wait result & cancel pull

errgroup seems to prefer the error raised by one of its goroutines rather than the calling context's cancelation for Wait's return value,
return context.Canceled to set Wait result & cancel pull
@serprex serprex requested a review from heavycrystal February 29, 2024 17:44
@serprex serprex enabled auto-merge (squash) February 29, 2024 17:44
@iskakaushik iskakaushik disabled auto-merge February 29, 2024 17:46
@iskakaushik iskakaushik merged commit ff1589e into main Feb 29, 2024
5 of 7 checks passed
@iskakaushik iskakaushik deleted the errgroup-cancel-without-cancel branch February 29, 2024 17:46
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.

3 participants