concurrency

package
v0.65.0 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2021 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.

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