contextwg

package
v0.0.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const KEY = wgKeyType("contextwg") //use unexported type to prevent key collisions

Variables

View Source
var NoWgFound = errors.New("no WaitGroup found")

Functions

func Add

func Add(ctx context.Context, delta int)

func AddWithErr

func AddWithErr(ctx context.Context, delta int) (err error)

func Done

func Done(ctx context.Context)

func DoneWithErr

func DoneWithErr(ctx context.Context) (err error)

func Get

func Get(ctx context.Context) (wg *sync.WaitGroup, err error)

func Wait

func Wait(ctx context.Context)

func WaitWithErr

func WaitWithErr(ctx context.Context) (err error)

func WithWaitGroup

func WithWaitGroup(parent context.Context, wg *sync.WaitGroup) context.Context

Types

This section is empty.

Jump to

Keyboard shortcuts

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