1
0
mirror of https://github.com/MontFerret/ferret.git synced 2025-07-05 00:49:00 +02:00
Files
ferret/pkg/stdlib/html/driver/browser/helpers.go

22 lines
271 B
Go
Raw Normal View History

2018-09-18 16:42:38 -04:00
package browser
import (
"golang.org/x/sync/errgroup"
)
2018-09-18 16:42:38 -04:00
func PointerInt(input int) *int {
return &input
}
type BatchFunc = func() error
func RunBatch(funcs ...BatchFunc) error {
eg := errgroup.Group{}
for _, f := range funcs {
eg.Go(f)
}
return eg.Wait()
}