Documentation ¶
Overview ¶
*
- @Author: yangon
- @Description
- @Date: 2020/12/25 15:04 *
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewErrGroup ¶
func NewErrGroup(of ...OptionFunc) *group
func WithContext ¶
WithContext returns a new Group and an associated Context derived 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.
Types ¶
type OptionFunc ¶ added in v1.0.2
type OptionFunc func(o *group)
func SetCancel ¶ added in v1.0.2
func SetCancel(f func()) OptionFunc
Click to show internal directories.
Click to hide internal directories.