limit_sync_group

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSemaphore

func NewSemaphore(maxSize int) *limitSyncGroup

Types

type Locker

type Locker struct {
	sync.RWMutex
}

type Worker

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

func NewWorker

func NewWorker(limit int) *Worker

func (*Worker) AddFunc

func (that *Worker) AddFunc(fun func(*Locker, ...interface{}) error, params ...interface{}) *Worker

func (*Worker) Do

func (that *Worker) Do() *Worker

func (*Worker) Error

func (that *Worker) Error() error

Jump to

Keyboard shortcuts

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