sync

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WaitGroup

type WaitGroup struct {
	sync.WaitGroup
}

WaitGroup A WaitGroup waits for a collection of goroutines to finish and support wait timeout.

func (*WaitGroup) WaitWithTimeout

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

WaitWithTimeout blocks until the WaitGroup counter is zero or timeout

Jump to

Keyboard shortcuts

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