Skip to content

Latest commit

 

History

History
25 lines (21 loc) · 331 Bytes

README.md

File metadata and controls

25 lines (21 loc) · 331 Bytes

Usage

Runner executes the provided functions in concurrent and collects any errors they return.

Example

package main 

import (
	"github.com/donutloop/toolkit/concurrent"
	"log"
)

func main() {
	concurrent.Run(
		func() error {
	        // do things
		},
		func() error {
			// do things
			return nil
		},
	)
}