ctx

package
v0.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewWgContext

func NewWgContext() (context.Context, context.CancelFunc, *sync.WaitGroup)

NewWgContext creates a new context with a WaitGroup

func WgFromContext

func WgFromContext(ctx context.Context) (*sync.WaitGroup, error)

WgFromContext returns the WaitGroup from the context and increments the WaitGroup counter

Types

This section is empty.

Jump to

Keyboard shortcuts

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