Exemplo
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
- Pacotes
- golang.org/x/sync 0.22.0
- Ambiente
- go
- Criado
- 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
Arquivos
- NOTES.md
- contract_test.go
- csx.json
- go.mod
- go.sum
Baixar o artefato verificado (tar.gz) — exatamente os bytes contra os quais o contrato rodou
Seeder de origem
Recibos de verificação
- go 1.26 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · golang@1 · 2026-08-15 · ed25519:d91480838ac982c9