concurrency

package
v0.120.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Min

func Min(r Reader, ccy int) int

Min reads the allowed concurrency from r, compares it against ccy and returns the smaller value of the two. A value of 1 is returned if r is unable to provide one.

func SplitTestFiles added in v0.86.0

func SplitTestFiles(files []string, concurrency int) [][]string

SplitTestFiles splits test files into groups to match concurrency

Types

type Reader

type Reader interface {
	// ReadAllowedCCY returns the allowed (max) concurrency for the current account.
	ReadAllowedCCY(ctx context.Context) (int, error)
}

Reader is the interface for retrieving account wide concurrency settings from Sauce Labs.

Jump to

Keyboard shortcuts

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