work

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Work

type Work struct {
	Job         *domain.Job
	Result      chan domain.JobResult
	TaskFunc    taskrepo.TaskFunc
	TimeoutUnit time.Duration
}

Work is the task to be executed by the workers.

func NewWork

func NewWork(
	j *domain.Job,
	resultChan chan domain.JobResult,
	taskFunc taskrepo.TaskFunc,
	timeoutUnit time.Duration) Work

NewWork initializes and returns a new Work instance.

Jump to

Keyboard shortcuts

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