Documentation
¶
Overview ¶
Package batchelor implements a generic batching executor. The API is loosely modeled golang.org/x/sync/singleflight.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Batch ¶
A Batch is a generic unit of work composed of a number of operations that will be executed together.
type Queue ¶
type Queue struct {
// contains filtered or unexported fields
}
A Queue executes operations in batches. While a batch is executing, all new incoming operations are added to a new "inbox" batch. When the current inflight batch finishes executing the inbox batch is executed and new operations will be queued in the next pending batch.
Click to show internal directories.
Click to hide internal directories.