errgrouputil

package
v0.25.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 5, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package errgrouputil contains methods for working with errgroup code.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build[T any](
	ctx context.Context,
	builders ...BuilderFunc[T],
) ([]*T, []error)

Build builds a slice of values of type T using the provided builders concurrently and returns the results and any errors.

Types

type BuilderFunc

type BuilderFunc[T any] func(ctx context.Context) (*T, error)

BuilderFunc is a function that builds a value of type T

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL