concurrent

package
v4.90.3 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2026 License: MIT Imports: 3 Imported by: 8 modules, 8 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChanUntilDone added in v4.66.9

func ChanUntilDone[T any](ctx context.Context, source <-chan T, onSource func(T), onDone func())

Types

type FailFast added in v4.30.4

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

func NewFailFast added in v4.30.4

func NewFailFast(limit int) *FailFast

func (*FailFast) Go added in v4.30.4

func (ff *FailFast) Go(f func() error)

func (*FailFast) Wait added in v4.30.4

func (ff *FailFast) Wait() error

func (*FailFast) WithContext added in v4.30.4

func (ff *FailFast) WithContext(ctx context.Context) context.Context

type Limiter added in v4.62.0

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

func NewLimiter added in v4.62.0

func NewLimiter(limit int) *Limiter

func (*Limiter) Go added in v4.62.0

func (l *Limiter) Go(f func())

func (*Limiter) Wait added in v4.62.0

func (l *Limiter) Wait()

Jump to

Keyboard shortcuts

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