Documentation
¶
Overview ¶
Package queue provides asynchronous task execution interfaces and implementations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrQueueFull = errors.New("queue is full")
ErrQueueFull is returned when the queue cannot accept more tasks.
Functions ¶
This section is empty.
Types ¶
type AntsQueue ¶
type AntsQueue struct {
// contains filtered or unexported fields
}
AntsQueue is an in-memory queue implementation using ants pool.
func NewAntsQueue ¶
NewAntsQueue creates a new AntsQueue with the given pool size.
Click to show internal directories.
Click to hide internal directories.