condvar

package
v0.0.0-...-15eb78e Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2022 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TimedWait

func TimedWait(c *sync.Cond, timeout time.Duration)

TimedWait waits for sync.Cond c to be signaled, with a timeout. If the condition is not signaled before timeout, TimedWait forces a Broadcast() on c until this function returns. This assumes a (common) use of sync.Cond where stray signals are allowed, so the extra Broadcast() introduced by this function isn't a problem. This function does not indicate whether a timeout occurred or not; the caller should check time.Now() as needed.

Types

This section is empty.

Jump to

Keyboard shortcuts

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