spawn

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Inject

func Inject[T target.Portal_](deps Deps[T]) target.Dispatch

Types

type Deps

type Deps[T target.Portal_] interface {
	WaitGroup() *sync.WaitGroup
	Processes() *sig.Map[string, T]
	TargetFind() target.Find[T]
	TargetRun() target.Run[T]
}

type Runner

type Runner[T target.Portal_] struct {
	// contains filtered or unexported fields
}

func NewRunner

func NewRunner[T target.Portal_](
	wait *sync.WaitGroup,
	processes *sig.Map[string, T],
	find target.Find[T],
	run target.Run[T],
) *Runner[T]

func (*Runner[T]) Run

func (r *Runner[T]) Run(ctx context.Context, src string, args ...string) (err error)

Jump to

Keyboard shortcuts

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