pool

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2018 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

author: foolbread file: pool/workpool.go date: 2017/6/16

a easy goroutine pool

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WorkPool

type WorkPool struct {
	// contains filtered or unexported fields
}

func NewWorkPool

func NewWorkPool(work func(interface{}), c uint) *WorkPool

func (*WorkPool) Close

func (w *WorkPool) Close()

func (*WorkPool) CommitWork

func (w *WorkPool) CommitWork(data interface{})

func (*WorkPool) Run

func (w *WorkPool) Run()

func (*WorkPool) WaitClose

func (w *WorkPool) WaitClose()

Jump to

Keyboard shortcuts

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