Documentation
¶
Index ¶
- Variables
- type Object
- type ObjectPool
- type Pipe
- type Queue
- type Stack
- func (s *Stack[ValueType]) Pop() (value ValueType, ok bool)
- func (s *Stack[ValueType]) PopBottom() (value ValueType, ok bool)
- func (s *Stack[ValueType]) Push(value ValueType)
- func (s *Stack[ValueType]) RangeDelete(checking func(v ValueType) (deleteNode, continueRange bool))
- func (s *Stack[ValueType]) Size() (size int)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrPipeEOF = io.EOF ErrPipeCanceled = fmt.Errorf("pipe canceled") )
Functions ¶
This section is empty.
Types ¶
type ObjectPool ¶
func NewObjectPool ¶
func NewObjectPool(idleTimeout time.Duration) *ObjectPool
func (*ObjectPool) Close ¶
func (s *ObjectPool) Close()
func (*ObjectPool) Pop ¶
func (s *ObjectPool) Pop(key string) Object
func (*ObjectPool) Push ¶
func (s *ObjectPool) Push(key string, o Object)
type Pipe ¶
type Pipe[Item any] struct { // contains filtered or unexported fields }
Pipe implement a queue that never block on Write but block on Read if there is nothing to read
type Queue ¶
type Queue[ValueType any] struct { // contains filtered or unexported fields }
Queue implement a concurrent-safe queue
Click to show internal directories.
Click to hide internal directories.