concurrency

package
v0.0.0-...-69f4c14 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2020 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type C

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

C for simple concurrency control

func New

func New(limit int) *C

New is used to initial a concurrent control object

func (*C) Add

func (c *C) Add(n int)

Add is used to add a task

func (*C) Done

func (c *C) Done()

Done is used to accomplish a task

func (*C) Wait

func (c *C) Wait()

Wait is used to wg for all tasks to be completed

Jump to

Keyboard shortcuts

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