Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidTimeout = errors.New("timeout is zero or negative") ErrContextWithoutDeadline = errors.New("context has no deadline") )
Functions ¶
func CallWithContext ¶ added in v0.13.0
func CallWithTimeout ¶ added in v0.13.0
Types ¶
type CtxGroup ¶ added in v0.10.0
type CtxGroup struct {
// contains filtered or unexported fields
}
A CtxGroup is a collection of goroutines working on subtasks that are part of the same overall task.
func NewCtxGroup ¶ added in v0.10.0
NewCtxGroup returns a new CtxGroup with an derived Context from ctx.
type ErrGroup ¶ added in v0.7.0
type ErrGroup struct {
// contains filtered or unexported fields
}
A ErrGroup is a collection of goroutines working on subtasks that are part of the same overall task.
A zero ErrGroup is valid and does not cancel on error.
func NewErrGroup ¶ added in v0.7.0
NewErrGroup returns a new Group with an derived Context from ctx.
The derived Context is canceled the first time a function passed to Go returns a non-nil error or the first time Wait returns, whichever occurs first.
Click to show internal directories.
Click to hide internal directories.