worker

package
v0.0.0-...-3a733ff Latest Latest
Warning

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

Go to latest
Published: May 24, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dispatcher

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

func NewDispatcher

func NewDispatcher(maxJobs, maxWorkers int, callbackC chan func()) *Dispatcher

func (*Dispatcher) CallbackC

func (d *Dispatcher) CallbackC() <-chan func()

func (*Dispatcher) Exec

func (d *Dispatcher) Exec(execFunc func() []byte, callbackFunc func([]byte))

func (*Dispatcher) Run

func (d *Dispatcher) Run()

Jump to

Keyboard shortcuts

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