conc

package
v0.0.0-...-e537141 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2023 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContextPool

type ContextPool interface {
	Go(f func(context.Context) error)
	Wait() error
}

func NewConcContextPool

func NewConcContextPool(cfg PoolConfig) ContextPool

type Main

type Main struct {
	NewPool        func(maxGoroutines int) Pool
	NewContextPool func(cfg PoolConfig) ContextPool
	MaxGoroutines  MaxGoroutines
}

func DefaultMain

func DefaultMain(max MaxGoroutines) Main

type MaxGoroutines

type MaxGoroutines uint

type Pool

type Pool interface {
	Go(f func())
	Wait()
}

func NewConcPool

func NewConcPool(maxGoroutines int) Pool

type PoolConfig

type PoolConfig struct {
	Context       context.Context
	MaxGoroutines int
}

Jump to

Keyboard shortcuts

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