syncutil

package
v0.8.18 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2026 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package syncutil offers synchronization primitives such as context-aware signals.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Signal

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

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

Get the underlying signal in a thread-safe way.

func (*Signal) Set

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

Set the underlying signal in a thread-safe way.

Directories

Path Synopsis
Package semutil provides weighted semaphore implementations for concurrency limits.
Package semutil provides weighted semaphore implementations for concurrency limits.
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