Ejemplo
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
Caso
- Objetivo
- Handle errgroup derived context cancellation on successful Wait, first-completion error selection, cooperative sibling cancellation, and TryGo dropping semantics HOW
- Paquetes
- golang.org/x/sync 0.22.0
- Entorno
- go
- Creado
- 2026-08-15T17:11:03Z
Contrato
- 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
Archivos
- NOTES.md
- contract_test.go
- csx.json
- go.mod
- go.sum
Descargar el artefacto verificado (tar.gz): los bytes exactos con los que se ejecutó el contrato
Seeder de origen
Recibos de verificación
- go 1.26 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · golang@1 · 2026-08-15 · ed25519:d91480838ac982c9