group

package module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2021 License: MIT Imports: 5 Imported by: 4

README

group

A goroutine group base on errgroup

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cancel

func Cancel()

func Go

func Go(f func(ctx context.Context) error)

func Wait

func Wait() error

Types

type Group

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

func Default

func Default() *Group

func New

func New() *Group

func NewWithContext

func NewWithContext(ctx context.Context) *Group

func NewWithSignal

func NewWithSignal(sig ...os.Signal) *Group

func (*Group) Cancel

func (g *Group) Cancel()

func (*Group) Go

func (g *Group) Go(f func(ctx context.Context) error)

func (*Group) Wait

func (g *Group) Wait() error

Jump to

Keyboard shortcuts

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