worker

package
v1.7.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: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Browser  = "browser"
	Renderer = "renderer"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Pool

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

func New

func New(ctx context.Context, maxWorker int) *Pool

func (*Pool) Do

func (w *Pool) Do(f func())

func (*Pool) Done

func (w *Pool) Done()

type Pools

type Pools map[string]*Pool

Jump to

Keyboard shortcuts

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