concurrent

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConcurrentCalcStruc

type ConcurrentCalcStruc struct {
	CpuCount,

	Count int

	Callback func(item interface{})
	// contains filtered or unexported fields
}

ConcurrentCalcStruc: structure to hold information and callback function to use while doing concurrent operations

func ConcurrentCalcStrucNew

func ConcurrentCalcStrucNew(cpuCount int, callBack func(item interface{})) *ConcurrentCalcStruc

ConcurrentCalcStrucNew: Create new structure

func (*ConcurrentCalcStruc) Run

func (ccs *ConcurrentCalcStruc) Run(items []interface{})

Run: Start concurrent computing operations

func (*ConcurrentCalcStruc) StringSliceToIfaceSlice

func (ccs *ConcurrentCalcStruc) StringSliceToIfaceSlice(inStr []string) []interface{}

StringSliceToIfaceSlice: Convert string slice to interface slice

func (*ConcurrentCalcStruc) Wait

func (ccs *ConcurrentCalcStruc) Wait()

Wait: Until operations done

Jump to

Keyboard shortcuts

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