Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pool ¶
type Pool[T any] struct { New func() T // contains filtered or unexported fields }
包装 sync.Pool
type PoolChan ¶
type PoolChan[T any] struct { New func() T // contains filtered or unexported fields }
由chan实现的池 避免 sync.Pool GC 回收问题
func NewPoolCap ¶
Click to show internal directories.
Click to hide internal directories.