Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SyncPool ¶
type SyncPool struct {
// contains filtered or unexported fields
}
func NewSyncPool ¶
func NewSyncPool(newFunc func() interface{}, init func(interface{})) *SyncPool
NewSyncPool 创建对象池 newFunc:创建对象的方法 init: 对象被创建后,返回之前,调用该方法初始化对象
Click to show internal directories.
Click to hide internal directories.