worker

package
v5.0.0-nightly+incompa... Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pool

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

func NewPool

func NewPool(ctx context.Context, limit int, name string) *Pool

func (*Pool) Apply

func (pool *Pool) Apply() *Worker

func (*Pool) HasWorker

func (pool *Pool) HasWorker() bool

func (*Pool) Recycle

func (pool *Pool) Recycle(worker *Worker)

type Worker

type Worker struct {
	ID int64
}

Jump to

Keyboard shortcuts

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