work

package
v1.3.9 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2022 License: GPL-3.0 Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	TaskChanCapacity   int
	WorkerChanCapacity int
	WorkerNum          int
}

type Worker

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

func Init

func Init(config Config) *Worker

func (*Worker) SendTask

func (worker *Worker) SendTask(task func())

Jump to

Keyboard shortcuts

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