execgroup

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2016 License: MIT Imports: 1 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 synchronizes dependent concurrent execution.

func NewGroup

func NewGroup(deps []*Group) *Group

NewGroup initializes and returns a new Group.

func (*Group) Exec

func (g *Group) Exec(fn func() error) error

Exec begins executing fn and prevents any waiting goroutines from resuming until fn returns.

func (*Group) Wait

func (g *Group) Wait() error

Wait blocks until the group has no running functions.

Jump to

Keyboard shortcuts

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