worknodes

package
v0.0.0-...-b51443a Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2022 License: BSD-2-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WorkerNodes

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

WorkerNodes a worker list

func New

func New(workerNum int) *WorkerNodes

New return a container of workers

func (*WorkerNodes) AddJob

func (w *WorkerNodes) AddJob(job worker.Job)

AddJob add a job to one of workers basis of key

func (*WorkerNodes) Close

func (w *WorkerNodes) Close()

Close close all worker

Jump to

Keyboard shortcuts

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