errgroup

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package errgroup provides server global wait group for graceful kill all goroutine

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Go

func Go(f func() error)

func Init

func Init(ctx context.Context) (egctx context.Context)

func Wait

func Wait() error

Types

type Group

type Group interface {
	Go(func() error)
	Limitation(int)
	Wait() error
}

func Get

func Get() Group

func New

func New(ctx context.Context) (Group, context.Context)

Jump to

Keyboard shortcuts

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