sync

package
v0.0.40 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cond

type Cond struct {
	L sync.Locker
	// contains filtered or unexported fields
}

func NewCond

func NewCond(l sync.Locker) *Cond

func (*Cond) Broadcast

func (c *Cond) Broadcast()

func (*Cond) BroadcastDo

func (c *Cond) BroadcastDo(do func() error)

func (*Cond) Signal

func (c *Cond) Signal()

func (*Cond) SignalDo

func (c *Cond) SignalDo(do func() error)

func (*Cond) WaitForDo

func (c *Cond) WaitForDo(timeout time.Duration, pred func() bool, do func() error) error

func (*Cond) WaitUntilDo

func (c *Cond) WaitUntilDo(timeout time.Duration, pred func() bool, do func() error) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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