Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ParseFunc ¶
type ParseFunc[TData any] func(TData) []abstract.ChangeItem
type ParseQueue ¶
type ParseQueue[TData any] struct { // contains filtered or unexported fields }
func (*ParseQueue[TData]) Add ¶
func (p *ParseQueue[TData]) Add(message TData) error
Add will schedule new message parse
Do not call concurrently with Close()!
func (*ParseQueue[TData]) Close ¶
func (p *ParseQueue[TData]) Close()
Close shutdown all goroutines
Do not call concurrently with Add()
type WaitableParseQueue ¶
type WaitableParseQueue[TData any] struct { // contains filtered or unexported fields }
func NewWaitable ¶
func (*WaitableParseQueue[TData]) Add ¶
func (p *WaitableParseQueue[TData]) Add(message TData) error
func (*WaitableParseQueue[TData]) Close ¶
func (p *WaitableParseQueue[TData]) Close()
func (*WaitableParseQueue[TData]) Wait ¶
func (p *WaitableParseQueue[TData]) Wait()
Wait waits when all messages, added via .Add() will be acked
Should be called mutually exclusive with Add()/Close()
Click to show internal directories.
Click to hide internal directories.