fork

package module
v0.0.0-...-a884e31 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2019 License: MIT Imports: 1 Imported by: 1

README

fork

Maximum fork limit

Build Status Go Report Card GoDoc GitHub license gocover.io

Usage

API Documentation

License

Pouch is licensed under the MIT License. See LICENSE for the full license text.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fork

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

Fork limit goroutines.

func NewFork

func NewFork(max int) *Fork

NewFork Create a new fork.

func NewForkBuf

func NewForkBuf(max int, buf int) *Fork

NewForkBuf fork limit, existing buffer.

func (*Fork) Join

func (fo *Fork) Join()

Join wait blocks until the WaitGroup counter is zero.

func (*Fork) Len

func (fo *Fork) Len() int

Len returns the size of the wait and the current fork.

func (*Fork) Push

func (fo *Fork) Push(f func())

Push trying to perform.

Jump to

Keyboard shortcuts

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