Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BatchQueue ¶
type BatchQueue struct {
OutQueue chan []any
// contains filtered or unexported fields
}
BatchQueue coordinates dispatching of queue items by time intervals or immediately after the batching limit is met.
func NewBatchQueue ¶
func NewBatchQueue(config *Options) *BatchQueue
NewBatchQueue returns an initialized instance of BatchQueue.
func (*BatchQueue) Enqueue ¶
func (b *BatchQueue) Enqueue(item any)
func (*BatchQueue) GetDispatchedCount ¶
func (b *BatchQueue) GetDispatchedCount() int
func (*BatchQueue) Stop ¶
func (b *BatchQueue) Stop()
Stop stops the internal dispatch and listen scheduler.
Click to show internal directories.
Click to hide internal directories.