diff --git a/docs/features/creating_container.md b/docs/features/creating_container.md index c86ccc10fb..533061a13f 100644 --- a/docs/features/creating_container.md +++ b/docs/features/creating_container.md @@ -112,7 +112,7 @@ requests := []GenericContainerRequest{ }, } -res, err := GenericParallelContainers(ctx, requests) +res, err := GenericParallelContainers(ctx, requests, GenericParallelOptions{}) if err != nil { e, ok := err.(GenericParallelErrors) diff --git a/parallel.go b/parallel.go index ac57e56626..3c84d65039 100644 --- a/parallel.go +++ b/parallel.go @@ -50,7 +50,7 @@ func genericContainerRunner( wg.Done() } -// GenericParallelContainers creates a generic containers with parameters in parallel mode +// GenericParallelContainers creates a generic containers with parameters and run it in parallel mode func GenericParallelContainers(ctx context.Context, reqs []GenericContainerRequest, opt GenericParallelOptions) ([]Container, error) { if opt.WorkersCount == 0 { opt.WorkersCount = defaultWorkersCount