Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetDefault ¶
func SetDefault(t *T)
func SetMaxRunning ¶
func SetMaxRunning(n int)
Types ¶
type T ¶
type T struct {
// contains filtered or unexported fields
}
func New ¶
func New(subQS pubsub.QueueSizer) *T
func NewDefault ¶
func NewDefault(subQS pubsub.QueueSizer) *T
func (*T) Enqueue ¶
Enqueue queues f, the action label names in the logs, to run when one of the max running slots is free, by priority, then by arrival order.
func (*T) Run ¶
Run runs f, the action label names in the logs, when one of the max running slots is free, by priority, then by arrival order, and returns its error.
func (*T) SetInterval ¶
SetInterval sets the pace of the checks of the queue: set before Start, which reads it.
func (*T) SetMaxRunning ¶
SetMaxRunning sets the number of the actions running at once, from any goroutine, the runner started or not.