concurrent

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Concurrenter

type Concurrenter interface {
	Acquire()
	Release()
}

type SimpleConcurrent

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

func NewSimpleConcurrentLimit

func NewSimpleConcurrentLimit(max int) *SimpleConcurrent

func (*SimpleConcurrent) Acquire

func (s *SimpleConcurrent) Acquire()

获取运行权限

func (*SimpleConcurrent) Release

func (s *SimpleConcurrent) Release()

是否运行权限

Jump to

Keyboard shortcuts

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