concurrent

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Concurrent

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

func CpuBound

func CpuBound(ctx contexts.Context, name string) *Concurrent

func Default added in v0.0.5

func Default(ctx contexts.Context, name string) *Concurrent

func New

func New(ctx contexts.Context, name string, limit int) *Concurrent

func Single

func Single(ctx contexts.Context, name string, exec func(ctx contexts.Context) error) *Concurrent

func (*Concurrent) Run

func (c *Concurrent) Run(exec func(ctx contexts.Context) error)

func (*Concurrent) RunN

func (c *Concurrent) RunN(name string, exec func(ctx contexts.Context) error)

func (*Concurrent) Wait

func (c *Concurrent) Wait() error

Jump to

Keyboard shortcuts

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