package
Version:
v0.5.0
Opens a new window with list of versions in this module.
Published: Jul 14, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func NewSafeQueue(queueSize, batchSize int, onItem OnItemsCB) *safeQueue
type EnqueueOp = func(any) any
type OnItemsCB = func(...any)
type Queue interface {
Start()
Stop()
Enqueue(any) (any, error)
}
const (
Created State = iota
Running
ReceiverStopped
PrepareStop
Stopped
)
type StateMachine interface {
Start()
Stop()
EnqueueRecevied(any) (any, error)
EnqueueCheckpoint(any) (any, error)
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.