Help us shape the future of Go! Take the 2026 Go Developer Survey

cond

package
v0.34.1 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2026 License: Apache-2.0 Imports: 1 Imported by: 17

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StatefulCond

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

func NewStatefulCond

func NewStatefulCond(l sync.Locker) *StatefulCond

NewStatefulCond returns a stateful version of sync.Cond . This cond will never block on `Wait()` if `Signal()` has been called after the `Wait()` last returned. This is useful for avoiding to take a lock on `cond.Locker` for signalling.

func (*StatefulCond) Signal

func (s *StatefulCond) Signal()

func (*StatefulCond) Wait

func (s *StatefulCond) Wait()

Jump to

Keyboard shortcuts

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