Registry / utility / creachadair-taskgroup

creachadair-taskgroup

JSON →
library0.14.3gogounverified

Package taskgroup manages collections of cooperating goroutines, handling waiting and error propagation.

go get github.com/creachadair/taskgroup
INSTALL
IMPORT
SIG · CREACHADAIR-TASKGR
C
creachadair-taskgroup
utilitygov0.14.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

taskgroup
github.com/creachadair/taskgroup

Creates a task group, runs two goroutines, and waits for them to complete.

package main import ( "context" "fmt" "github.com/creachadair/taskgroup" ) func main() { g, ctx := taskgroup.New(context.Background()) g.Go(func() error { fmt.Println("Task 1") return nil }) g.Go(func() error { fmt.Println("Task 2") return nil }) if err := g.Wait(); err != nil { panic(err) } fmt.Println("All tasks completed") }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.14.3latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
creachadair-taskgroup — go get creachadair-taskgroup · libregistry