package
module
Version:
v0.0.0-...-24974d6
Opens a new window with list of versions in this module.
Published: Feb 5, 2016
License: BSD-3-Clause
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 2
Opens a new window with list of known importers.
README
¶
mempool
This package implements a version of sync.Pool
as supported in Go versions 1.3 and later.
For Go versions prior to that, it uses an implementation
that never deletes any values from the pool.
If you don't need your code to compile on Go versions
prior to 1.3, don't use this package - use sync.Pool
instead.
Documentation
¶
Package mempool implements a version of sync.Pool
as supported in Go versions 1.3 and later.
For Go versions prior to that, it uses an implementation
that never deletes any values from the pool.
If you don't need your code to compile on Go versions
prior to 1.3, don't use this package - use sync.Pool
instead.
A Pool is a set of temporary objects that may be individually saved and
retrieved.
It is a wrapper around sync.Pool.
func (p *Pool) Get() interface{}
func (p *Pool) Put(x interface{})
Source Files
¶
Click to show internal directories.
Click to hide internal directories.