concurrent

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Limiter

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

func NewLimiter

func NewLimiter(n int) *Limiter

func (*Limiter) Done

func (l *Limiter) Done()

func (*Limiter) Take

func (l *Limiter) Take(ctx context.Context) error

func (*Limiter) TryTake

func (l *Limiter) TryTake() bool

type Retry

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

func NewRetry

func NewRetry(min, max time.Duration) *Retry

func (*Retry) Clear

func (r *Retry) Clear()

func (*Retry) Wait

func (r *Retry) Wait(ctx context.Context) error

Jump to

Keyboard shortcuts

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