vmpool

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PoolImp added in v1.0.5

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

func NewPoolImp added in v1.0.5

func NewPoolImp(workerID int64, tps, cap int64, job func(v vm.VM)) (*PoolImp, error)

func (*PoolImp) AsyncWalk added in v1.0.5

func (i *PoolImp) AsyncWalk(wf func(v vm.VM) bool)

func (*PoolImp) Close added in v1.0.5

func (i *PoolImp) Close()

func (*PoolImp) Push added in v1.0.5

func (i *PoolImp) Push() error

func (*PoolImp) Walk added in v1.0.5

func (i *PoolImp) Walk(wf func(v vm.VM) bool)

type WrapVM added in v1.0.5

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

Jump to

Keyboard shortcuts

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