// Parallel runs the functions in parallel.
Parallel runs the functions in parallel.
// Parallel runs the functions in parallel .
func ExampleParallel() {
	var (
		f1 = func(ctx context.Context) error {
			fmt.Println("f1 running")
			return nil
		}
		f2 = func(ctx context.Context) error {
			fmt.Println("f2 running")
			return nil
		}
		f3 = func(ctx context.Context) error { return errors.New("error") }
	)
	if err := Parallel(context.Background(), f1, f2, f3); err != nil {
		fmt.Println(err.Error())
	}
}
func ExampleParallel ( ) { var ( f1 = func ( ctx context . Context ) error { fmt . Println ( " " ) return nil } f2 = func ( ctx context . Context ) error { fmt . Println ( " " ) return nil } f3 = func ( ctx context . Context ) error { return errors . New ( " " ) } ) if err := Parallel ( context . Background ( ) , f1 , f2 , f3 ) ; err != nil { fmt . Println ( err . Error ( ) ) } }
Parallel runs the functions in parallel.
Parallel runs the functions in parallel .
// Unordered Output: f1 running // f2 running // error