ants

package
v0.0.0-...-f2f1574 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ants

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

func NewAnts

func NewAnts(size int, options ...ants.Option) (*Ants, error)

func (*Ants) Reboot

func (a *Ants) Reboot()

Reboot 重启pool

func (*Ants) Release

func (a *Ants) Release()

Release 释放 Pool

func (*Ants) Submit

func (a *Ants) Submit(f fn) error

Submit 提交任务通过调用 ants.Submit(func())方法:

func (*Ants) Tune

func (a *Ants) Tune(size int)

Tune 动态调整 goroutine 池容量

Jump to

Keyboard shortcuts

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