Documentation
¶
Index ¶
- func NewSafeQueue(queueSize, batchSize int, onItem OnItemsCB) *safeQueue
- func NewStateMachine(wg *sync.WaitGroup, closed Closable, rQueue, ckpQueue Queue) *stateMachine
- func NewWaitableQueue(queueSize, batchSize int, closed Closable, wg *sync.WaitGroup, ...) *waitableQueue
- type Closable
- type ClosedState
- type EnqueueOp
- type OnFinCB
- type OnItemsCB
- type Queue
- type State
- type StateMachine
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSafeQueue ¶
func NewStateMachine ¶
Types ¶
type ClosedState ¶
type ClosedState struct {
// contains filtered or unexported fields
}
func (*ClosedState) IsClosed ¶
func (s *ClosedState) IsClosed() bool
func (*ClosedState) TryClose ¶
func (s *ClosedState) TryClose() bool
type StateMachine ¶
Click to show internal directories.
Click to hide internal directories.