Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockingQueue ¶
type BlockingQueue[T any] struct { // contains filtered or unexported fields }
func NewBlockingQueue ¶
func NewBlockingQueue[T any](ctx context.Context, queueSize int) *BlockingQueue[T]
func (*BlockingQueue[T]) Poll ¶
func (q *BlockingQueue[T]) Poll() T
func (*BlockingQueue[T]) Push ¶
func (q *BlockingQueue[T]) Push(value T)
func (*BlockingQueue[T]) SetRejectHandler ¶
func (q *BlockingQueue[T]) SetRejectHandler(handler RejectHandler)
SetRejectHandler Set a reject handler.
type RejectHandler ¶
RejectHandler Reject push into queue if return false.
Click to show internal directories.
Click to hide internal directories.