runner

package
v1.18.0-pre.0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MultiError

type MultiError struct {
	// contains filtered or unexported fields
}

MultiError can be used to run multiple goroutines that might return an error, wait for all the goroutines and return joined errors as a single one.

func (*MultiError) Go

func (m *MultiError) Go(fn func() error)

Go runs a function in a separate goroutine.

func (*MultiError) Wait

func (m *MultiError) Wait() error

Wait waits for all the goroutines to finish and returns joined errors as a single one.

Jump to

Keyboard shortcuts

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