mempool

package module
v0.0.0-...-24974d6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 5, 2016 License: BSD-3-Clause Imports: 1 Imported by: 2

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

Overview

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.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pool

type Pool sync.Pool

A Pool is a set of temporary objects that may be individually saved and retrieved.

It is a wrapper around sync.Pool.

func (*Pool) Get

func (p *Pool) Get() interface{}

func (*Pool) Put

func (p *Pool) Put(x interface{})

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL