Documentation
¶
Index ¶
- Constants
- Variables
- func Add(ctx context.Context, delta int)
- func AddWithErr(ctx context.Context, delta int) (err error)
- func Done(ctx context.Context)
- func DoneWithErr(ctx context.Context) (err error)
- func Get(ctx context.Context) (wg *sync.WaitGroup, err error)
- func Wait(ctx context.Context)
- func WaitWithErr(ctx context.Context) (err error)
- func WithWaitGroup(parent context.Context, wg *sync.WaitGroup) context.Context
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 DoneWithErr ¶
func WaitWithErr ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.