syncutil

package
v1.50.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2026 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package syncutil provides small synchronization helpers shared across packages that don't otherwise have a natural common dependency.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WaitWithTimeout

func WaitWithTimeout(wg *sync.WaitGroup, timeout time.Duration) bool

WaitWithTimeout waits for wg to reach zero, returning true if it did so within timeout. Returns false if timeout elapses first; the spawned goroutine remains running and reports into wg after this function returns, but its result is discarded (sync.WaitGroup has no cancelable Wait).

Types

This section is empty.

Jump to

Keyboard shortcuts

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