Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Queue ¶
type Queue struct {
// contains filtered or unexported fields
}
Queue is a worker queue with a fixed amount of workers
func New ¶
func New(ctx context.Context, workers int, handler func(context.Context, interface{}) (interface{}, error)) *Queue
New creates a new Queue with the specified amount of workers
Click to show internal directories.
Click to hide internal directories.