wait

package
v1.15.1 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Group

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

Group allows to wait for a collection of goroutines to finish with a timeout or a stop channel.

func NewGroup

func NewGroup() *Group

func (*Group) Done

func (g *Group) Done()

func (*Group) Increment

func (g *Group) Increment() *Group

func (*Group) Wait

func (g *Group) Wait()

func (*Group) WaitUntil

func (g *Group) WaitUntil(stopCh <-chan struct{}) error

func (*Group) WaitWithTimeout

func (g *Group) WaitWithTimeout(timeout time.Duration) error

Jump to

Keyboard shortcuts

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