package
module
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Jan 29, 2022
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func (o *ObjPool) Get() interface{}
Get 获取对象,超过重试次数返回值为nil
Lock 用来外部锁定,在外部锁定状态下不要操作pool,否则会造成死锁
func (o *ObjPool) Put(v interface{})
Put 放回
Source Files
¶
Click to show internal directories.
Click to hide internal directories.