package
Version:
v1.0.1
Opens a new window with list of versions in this module.
Published: Dec 13, 2020
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation
¶
type ExpireFunc func(interface{})
type NewFunc func() (interface{}, error)
type TPool struct {
Expire time.Duration
NewFunc func() (interface{}, error)
ExpireFunc func(interface{})
}
线程池
func (p *TPool) Put(value interface{})
对象放入到线程池
Source Files
¶
Click to show internal directories.
Click to hide internal directories.