gpool

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2025 License: LGPL-3.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 GPool

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

func NewGPool

func NewGPool(capacity int) *GPool

func (*GPool) Acquire

func (p *GPool) Acquire() bool

func (*GPool) ErrChan

func (p *GPool) ErrChan() <-chan error

ErrChan 提供一个错误通道的访问方法

func (*GPool) Go

func (p *GPool) Go(job func(ctx context.Context) error)

func (*GPool) Release

func (p *GPool) Release()

func (*GPool) Shutdown

func (p *GPool) Shutdown()

func (*GPool) Wait

func (p *GPool) Wait(timeout time.Duration) bool

Jump to

Keyboard shortcuts

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