concurrent

package
v4.81.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: MIT Imports: 3 Imported by: 5

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