Documentation ¶
Overview ¶
Package taskqueue provides a queue for executing tasks asynchronously.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger func(v ...interface{})
Logger provides a way to log panics caused by workers in a queue.
type Option ¶
type Option func(*Queue)
Option defines an option for the queue.
func Depth ¶
Depth sets the depth of the queue. Calls to Submit() will block when this number of tasks are already pending execution. Pass in a negative number to use an unbounded queue. Defaults to unbounded.
type Queue ¶
type Queue struct {
// contains filtered or unexported fields
}
Queue holds the queue information.
Click to show internal directories.
Click to hide internal directories.