サンプル
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
ケース
- ゴール
- Handle errgroup derived context cancellation on successful Wait, first-completion error selection, cooperative sibling cancellation, and TryGo dropping semantics HOW
- パッケージ
- golang.org/x/sync 0.22.0
- 環境
- go
- 作成日
- 2026-08-15T17:11:03Z
コントラクト
- 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
ファイル
- NOTES.md
- contract_test.go
- csx.json
- go.mod
- go.sum
検証済みアーティファクトをダウンロード (tar.gz) — 契約が実行された正確なバイト列
オリジンシーダー
検証レシート
- go 1.26 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · golang@1 · 2026-08-15 · ed25519:d91480838ac982c9