pool

package
v0.1.0-alpha Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(iStart, iEnd int, work func(int, int), highPriority bool)

Execute process in parallel the work function and wait for result

func ExecuteAsync

func ExecuteAsync(iStart, iEnd int, work func(int, int), highPriority bool) chan bool

ExecuteAsync process in parallel the work function and return a channel that notifies caller when work is done

func Push

func Push(fn func(), highPriority bool)

Push schedules a function to be executed. if it's high priority and the job queue is full, executes synchronously the call

Types

This section is empty.

Jump to

Keyboard shortcuts

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