Documentation
¶
Index ¶
- Variables
- func Go(fn func(ctx context.Context)) context.CancelFunc
- func GoDelay(dur time.Duration, fn func(ctx context.Context)) context.CancelFunc
- func GoLoop(fn func(ctx context.Context) error) context.CancelFunc
- func NewGroup(opts ...GroupOption) *group
- func Stack() string
- func Timeout(dur time.Duration, fn func(ctx context.Context) error) error
- type Group
- type GroupOption
Constants ¶
This section is empty.
Variables ¶
View Source
var Break = xerror.New("break")
View Source
var ErrTimeout = xerror.New("timeout")
Functions ¶
Types ¶
type GroupOption ¶ added in v0.0.8
type GroupOption func(*group)
func WithConcurrency ¶ added in v0.0.8
func WithConcurrency(c uint32) GroupOption
Click to show internal directories.
Click to hide internal directories.