Last 12 weeks · 0 commits
2 of 6 standards met
Note that this version changes the behavior of semaphore slightly. After https://cs.opensource.google/go/x/sync/+/14be23e5b48bec28285f8a694875175ecacfddb3 the semaphore package will reliably raise errors for both go routines change the test to test for a substring to be more relaxed in case that behavior gets reverted
Repository: fatih/semgroup. Description: Like errgroup/waitgroup, but only runs a maximum of tasks at any time. Stars: 319, Forks: 16. Primary language: Go. Languages: Go (100%). License: BSD-3-Clause. Homepage: https://pkg.go.dev/github.com/fatih/semgroup Topics: concurrency, errgroup, go, golang, semaphore, waitgroup. Latest release: v1.3.0 (1y ago). Open PRs: 0, open issues: 0. Last activity: 1y ago. Community health: 42%. Top contributors: fatih, ahmetb, ebati, Integralist, matsuyoshi30, siretart, tshak.
Go
One of the great things about semgroup over x/sync/errgroup is that it actually waits all tasks to complete and returns an error. However, the returned error type doesn't let the caller to iterate over the errors (e.g. my use case requires me to truncate the list of errors). Therefore, introducing a backwards-compatible change that exports type, and guarantees that method returns an error of this type.