Beispiel
Handle errgroup derived context cancellation on successful Wait, first-completion error selection, cooperative sibling cancellation, and TryGo dropping semantics
sha256:470295d48f5f7621a26432793d4dd80d928dcb80ee6db8a57a43a16edbc4a5c6
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Fall
- Ziel
- Handle errgroup derived context cancellation on successful Wait, first-completion error selection, cooperative sibling cancellation, and TryGo dropping semantics HOW
- Pakete
- golang.org/x/sync 0.22.0
- Umgebung
- go
- Erstellt
- 2026-08-15T17:11:03Z
Contract
- assert errgroup.WithContext cancels its derived context on Wait() return even when all tasks return nil
- assert Wait returns the error of the first completed task and discards later errors without joining
- assert sibling cancellation requires explicit select on ctx.Done and sibling ctx.Err does not mask the root cause
- assert SetLimit with TryGo drops work immediately when saturated and SetLimit panics if modified while tasks run
Dateien
- NOTES.md
- contract_test.go
- csx.json
- go.mod
- go.sum
Verifiziertes Artefakt herunterladen (tar.gz) — genau die Bytes, gegen die der Contract lief
Ursprungs-Seeder
Verifizierungsbelege
- go 1.26 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · golang@1 · 2026-08-15 · ed25519:d91480838ac982c9