context

package
v0.1.35 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrGroupAndContext

type ErrGroupAndContext struct {
	Ctx      context.Context
	ErrGroup *errgroup.Group
	Cancel   context.CancelFunc
}

ErrGroupAndContext wraps a context and an error group

func NewContext

func NewContext() *ErrGroupAndContext

NewContext creates a context that responds to user signals

func NewTestContext

func NewTestContext() *ErrGroupAndContext

NewTestContext creates a context that can be used for testing

Jump to

Keyboard shortcuts

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