Skip to content

Conversation

@Eric-Guo
Copy link
Contributor

@Eric-Guo Eric-Guo commented Sep 4, 2025

Purpose

Re the article: Go 1.25 adds WaitGroup.Go to automatically manage Add/Done for goroutines, simplifying concurrency and avoiding common counter misuse.

Prompt for GPT-5-high

Can you read https://mfbmina.dev/en/posts/waitgroups/ and apply the new function wg.Go in sponge ?

…en deprecated since Go 1.24 and an alternative has been available since Go 1.2: OFB mode is not authenticated, which generally enables active attacks to manipulate and recover the plaintext. It is recommended that applications use [AEAD] modes instead. The standard library implementation of OFB is also unoptimized and not validated as part of the FIPS 140-3 module. If an unauthenticated [Stream] mode is required, use [NewCTR] instead. (staticcheck)
…compile because sync.WaitGroup does not provide a Go method—only Add/Done/Wait. In addition, the paired wg.Done() call in worker() was removed, so even if this did build, every Wait() would block forever because the counter never reaches zero. Please revert to wg.Add(1) plus go ...; defer wg.Done() or switch to the intended primitive (e.g., errgroup) across these sites.
@Eric-Guo
Copy link
Contributor Author

Cloase as codex is not yet learning the Go 1.25, so review process will break.

@Eric-Guo Eric-Guo closed this Oct 18, 2025
@Eric-Guo Eric-Guo deleted the new_wg_Go branch October 18, 2025 09:39
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.

1 participant