syncutil

package
v0.8.13 Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WaitContext

func WaitContext(ctx context.Context, wg *sync.WaitGroup) bool

WaitContext waits for the wait group to complete up until the context expires and returns false on timeout

Types

type Signal added in v0.8.0

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

Signal allows for an os.Signal to be passed and accessed in a thread-safe way.

func (*Signal) Get added in v0.8.0

func (s *Signal) Get() os.Signal

Get the underlying signal in a thread-safe way.

func (*Signal) Set added in v0.8.0

func (s *Signal) Set(v os.Signal)

Set the underlying signal in a thread-safe way.

Directories

Path Synopsis
Package serrgroup is an error group that does not crash if work is added after Wait has returned after an error.
Package serrgroup is an error group that does not crash if work is added after Wait has returned after an error.

Jump to

Keyboard shortcuts

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