gwg

package
v0.0.0-...-2bcc11b Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() *sync.WaitGroup

Types

type WaitSwitch

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

func NewWaitSwitch

func NewWaitSwitch() *WaitSwitch

func (*WaitSwitch) SetBlock

func (w *WaitSwitch) SetBlock()

func (*WaitSwitch) SetUnBlock

func (w *WaitSwitch) SetUnBlock()

func (*WaitSwitch) Wait

func (w *WaitSwitch) Wait(waitTimeout *time.Duration)

Wait waits until condition satisfied. If waitTimeout == nil: waits until: 1, SetUnBlock() called. If waitTimeout != nil: waits until: 1, SetUnBlock() called, or 2, timeout reached.

Jump to

Keyboard shortcuts

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