concurrent

package
v1.73.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2023 License: Apache-2.0 Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DebugConcurrency bool
View Source
var VerboseConcurrency bool

Functions

func RunParallelTasksByPriority

func RunParallelTasksByPriority(execLists []ExecutionList)

Types

type CommonChan

type CommonChan chan *exec.Cmd

type ExecCommand

type ExecCommand struct {
	Cmd    string
	Args   []string
	Tracer Trace
}

type ExecCommands

type ExecCommands []ExecCommand

type ExecutionList

type ExecutionList struct {
	Logger   *defaults.Logger
	Priority int
	Command  ExecCommand
}

type Trace

type Trace func(ti TraceInfo)

type TraceInfo

type TraceInfo struct {
	Time  time.Time
	Cmd   string
	Args  []string
	Level int
}

Jump to

Keyboard shortcuts

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