This repository contains a Go package taskch
which allows multiple goroutines
to be joined.
import "github.com/snsinfu/go-taskch"
func doTasks() error {
tasks := taskch.New()
tasks.Go(func() error {
return nil
})
tasks.Go(func() error {
return nil
})
return tasks.Wait()
}
MIT License.