Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Func ¶
type Func struct {
// contains filtered or unexported fields
}
Func has func(context.Context) and context. The context uses with DoWithContext().
type QGroup ¶
type QGroup struct {
// contains filtered or unexported fields
}
QGroup represents function calling queues and settings
func NewGroup ¶
func NewGroup(opts ...QGroupOption) *QGroup
NewGroup returnes QGroup struct is configured with QGroupOptions
type QGroupOption ¶
type QGroupOption func(g *QGroup)
A QGroupOption is a functional option type for QGroup
func WithMaxQueue ¶
func WithMaxQueue(maxQueue int) QGroupOption
WithMaxQueue configures max number of queue items. Default is 0.
func WithTimeout ¶
func WithTimeout(d time.Duration) QGroupOption
WithTimeout configures function call timeout. if a function reaches the timeout, ctx in the function returns a channel.
Click to show internal directories.
Click to hide internal directories.