Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Requeuer ¶
type Requeuer interface { Requeue() Dequeue() <-chan interface{} }
Requeuer handle requeues/enqueues into a channel to allow job syncronization. There might be different implementations due to how the blocking aspect is handled.
func BufferedRequeuer ¶
BufferedRequeuer returns a static buffered requeuer of a fixed size. After the number of sync requests overflow the size the Requeue() calls will be blocking
func ConcurrentRequeuer ¶
ConcurrentRequeuer returns a dynamic requeuer of a maximum size. Requeue() will never be blocking, but when the maximum size is crossed we stop enqueueing
Click to show internal directories.
Click to hide internal directories.